I'm not sure how to fix the problem from the current situation, but you can look at git merge -s ours . The docs are here .
Workflow will be
- Create branch
a from master - Make your own change in branch
a , which you do not want to merge back into master - Check out
master and git merge -s ours a - Check out
a and continue to work and commit.
Now, when you merge with the master, the user changes in step 2 will be ignored.
Gattster Jan 19 '10 at 19:48 2010-01-19 19:48
source share