I am confused on the proper way to manually merge a pull request, and to understand why there are different suggestions regarding it.
Suppose the simplest situation: one master
(long-lived) branch and one single feature
branch with several commits for which a pull request is made but which shows merge conflicts with the master branch.
GitHub says to do:
git fetch origin
git checkout -b feature origin/feature
git merge master
and then
git checkout master
git merge --no-ff feature
git push origin master
Why do we merge
master
intofeature
and then the reverse after that? This SO suggests the order doesn't matter but This SO suggests there are issues relating to the parent.This SO discusses manually merging pull requests but says you only need to merge your master branch into your feature branch and that's it. How is that consistent with what GitHub says?