Preparing a pull request:

  1. Go to master and run

git pull origin master (to fetch all the recent changes from remote)

  1. Go to [branch-name] and run

git merge master (to merge the changes I did into your branch)

  1. 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.