Preparing a pull request:
- Go to
git pull origin master (to fetch all the recent changes from remote)
- Go to [branch-name] and run
git merge master (to merge the changes I did into your branch)
- now run
git push origin [branch-name] (to update remote with your branch after the merge with master)
Don’t be confuse 🙂 You are merging master into your branch to be synced with master, pull request (once approved) does the other way around.