how to add an upstream to a git project

  1. open terminal
  2. git remote add upstream [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.

[source]