My eyes were all over this page: Git merge without auto commit
I wanted to believe. But I tried and reality diverged.
I have this:
git fetch origin;
git merge --no-edit origin;
this seems to create new commits, even if there were no changes between the remote and the local branch.
I don't think that using
git merge --no-ff origin;
or
git merge --no-commit origin;
are the answers. How can I merge the remote into the local without making a commit if there are no changes? Perhaps not do the merge at all, and first check to see if there is a difference?
What I am confused about: I assume --no-commit
will break if the remote branch has changes that need to be merged into the local branch, because shouldn't that always require a new commit?