how to update a git fork

  1. open up your terminal
  2. if you haven't already, clone the repository by doing git clone [url].git where [url] is the address of the repository. if you use github and feel lazy the clone/download button will have the .git address you need with a convenient copy button.
  3. cd into the project's folder
  4. git fetch upstream (if you receive an error, you may need to try this guide)
  5. git checkout master
  6. git merge upstream/master
  7. git push origin master

[source]