Last active
April 21, 2018 20:21
-
-
Save YuxiUx/67a4091adf53a84e1a1529a37c15b0d5 to your computer and use it in GitHub Desktop.
Update forked repository from original
This file contains 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
# 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