Skip to content

Instantly share code, notes, and snippets.

@MerleLiuKun
Last active March 27, 2019 11:39
Show Gist options
  • Save MerleLiuKun/53512b105352148a0d6b79687d1c2489 to your computer and use it in GitHub Desktop.
Save MerleLiuKun/53512b105352148a0d6b79687d1c2489 to your computer and use it in GitHub Desktop.
git fork then follow the source repositories update
# 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