Created
July 12, 2019 05:31
-
-
Save alessandrostone/161ee4af517b68b49f05d0d42c2d00e0 to your computer and use it in GitHub Desktop.
Synch forked git with original
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git remote add upstream https://github.com/[Original Owner Username]/[Original Repository].git | |
$ git fetch upstream | |
$ git checkout master | |
$ git merge upstream/master | |
$ git push | |
# for zsh | |
alias gitOriginalSynch="git fetch upstream; git merge upstream/master; git push origin master" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment