Skip to content

Instantly share code, notes, and snippets.

@alessandrostone
Created July 12, 2019 05:31
Show Gist options
  • Save alessandrostone/161ee4af517b68b49f05d0d42c2d00e0 to your computer and use it in GitHub Desktop.
Save alessandrostone/161ee4af517b68b49f05d0d42c2d00e0 to your computer and use it in GitHub Desktop.
Synch forked git with original
$ 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