Linking remote n local repos
Linking your local fork to a upstream repo¶
-
Fork the repo which you want to work on by pressing fork button on github.com
-
Git clone your fork
$ git clone git@github.com:username/upstream-repo-name.git
-
change to go in the repository
$ cd upstream-repo-name
-
Now we link our local repo to the central (upstream repo) in order to pull changes from there
$ git remote add upstream git@github.com:upstream-repo-name/upstream-repo-name.git
-
Now, verify if the remote is indeed been added
$ git remote -v