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.
git merge --no-commit --no-ff
does it.
When you executed it, the changes from local-branch are applied but not yet staged.
Then, you could look at the changes to be applied and – in case that you want to take them all – apply them with
git commit -a
Otherwise, select the files to be taken, stage them with git add and finally commit them with git commit. Restore the unwanted files then with git checkout -- filename.