How to make git merge handle uncommitted changes to my working tree? -
A coworker and I are both working on the master branch at this time. In my work tree I have some code which I do not want to commit (debugging statements and the like). Now if he changes some of those files, I can not merge them:
Origin of $ git merge / master update 1b8c5c6..eb44c23 error: entry 'blah.java 'Not uptodate Can not merge Coming from a subversion background, I'm automatically merging my work tree when I bring changes from the repository and if there is a conflict, So I manually solve them.
This is the fastest way in GIT:
$ git stash $ git merge original / master $ git hide pop mandatory By the way, to remove my untold changes, merge and then apply the changes again How can I tell the merge to automatically merge my work tree?
As far as I can tell, you already have the git stash < What can be done with / code>, the best you can I find it strange too that merge only wants to deal with cleaned trees.
Comments
Post a Comment