Skip to content

Instantly share code, notes, and snippets.

@YuxiUx
Last active April 21, 2018 20:21
Show Gist options
  • Save YuxiUx/67a4091adf53a84e1a1529a37c15b0d5 to your computer and use it in GitHub Desktop.
Save YuxiUx/67a4091adf53a84e1a1529a37c15b0d5 to your computer and use it in GitHub Desktop.
Update forked repository from original
# First cd root of forked project.
git fetch upstream
git checkout master
git merge upstream/master
# if everything is ok
git push
# In normal situation you can simply run this file
#$ bash sync_fork.sh
# HELP: Before first use you must configure reference to original project
#$ git remote add upstream https://github.com/<original-author>/<repository>.git
# if you not sure about your configuration check it using
#$ git remote -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment