Suppose I merge a branch to the master. Since I do not want to merge everything I run git merge --no-commit
, check merged files manually, and decide to exclude some of them from the merge. So, I run git reset HEAD <file>
and git checkout <file>
for every file I want to exclude from the merge.
Does it make sense? Is there a better way to do it?