How to prevent an automerge using git?

Posted by marckassay on Stack Overflow See other posts from Stack Overflow or by marckassay
Published on 2011-03-08T16:04:57Z Indexed on 2011/03/08 16:10 UTC
Read the original article Hit count: 178

Filed under:

I am trying to merge a local branch into the master branch without having Git to do an automerge. I would like to “hand pick” what I would like to be merged into master.

When I use Git’s difftool command, I am able to diff and select what I want to be added into the master branch. But then when I do a merge, I will lose what I selected prior because Git will do an automerge. I can commit the changes into master prior to the merge, but doing so seems unnatural.

And Git’s mergetool is only available when there are conflicts from a merge. But if Git does an automerge then usually there aren’t conflicts, so I am unable to run the mergetool command.

© Stack Overflow or respective owner

Related posts about git