Suppose I connect a branch to a master. Since I don't want to merge everything that I run git merge --no-commit , check the 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 each file that I want to exclude from the merge.
Does it make sense? Is there a better way to do this?
source share