Let's say I have a branch with functions in which I merge upstream changes before pushing my changes back:
git branch feature1 ... [edit my code] ... [commit] git fetch origin master git merge fetch_head [or rebase] ... [resolve conflicts] ... [build and test code]
At this moment I want to push my changes. The usual way to do this is:
git checkout master [changes a bunch of working tree files] git merge feature1 [changes the same files right back]
This works fine, but makes the compiler (checking the date) think that a whole bunch of files are dirty and needs to be rebuilt, even if the contents are the same. Is there a checkout-and-merge method that leaves the working tree unchanged in this case?
Something like:
git checkout master --merge-branch feature1
EDIT:
I am talking only about fast merges, which by definition will not change the state of files.
git
Tomas Lundell Sep 10 '09 at 1:37 2009-09-10 01:37
source share