I am trying to understand how to keep my fork's master updated with the original repo's (from which I forked) master.
I read two documents:
- https://github.com/susam/gitpr#keep-your-fork-updated
- https://gist.github.com/Chaser324/ce0505fbed06b947d962#keeping-your-fork-up-to-date
Both documents provide more or less these steps:
git fetch upstream
git checkout master
git merge upstream/master
Can these 3 steps be safely reduced to:
git checkout master
git pull upstream/master
- If yes, is there any scenario where the reduced two-step update would lead to problems but the three-step update would not?
- Can these two steps be reduced to just one step?