Skip to content
Snippets Groups Projects
Forked from R3 / school / courses
Loading
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
syncFork.md 881 B

Synchronize your fork

bulb Remember, we have to regularly update our own copy of the code.

Add the upstream address (original/protected repository)

$ git remote add upstream git@github.com:LCSB-BioCore/basic-git-practice.git

bulb Note the change in the URL.

You can then check whether the remote address is set correctly

$ git remote -v

Fetch the changes from upstream (similar to pull)

$ git fetch upstream

Merge the retrieved changes on the master branch:

$ git checkout master
$ git merge upstream/master
$ git push origin master

Do the same for the develop branch:

$ git checkout develop
$ git merge upstream/develop
$ git push origin develop