Last active
March 27, 2019 11:39
-
-
Save MerleLiuKun/53512b105352148a0d6b79687d1c2489 to your computer and use it in GitHub Desktop.
git fork then follow the source repositories update
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
# add remote upstream source | |
git remote add upstream https://github.com/encode/requests-async.git | |
# check the remote status | |
git remote -v | |
# fetch the upstream lastest update | |
git fetch upstream | |
# change current branch to master | |
git checkout master | |
# user merge or rebase to combine code | |
# merge will keep your own merge log. | |
# rebase only let code to upstream newest commit | |
# if you want keep log clean, need use rebase | |
git rebase/merge upstream/master | |
# check the commit | |
git log | |
# push current master to origin | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment