Skip to content

Instantly share code, notes, and snippets.

@chenhengqi
Created November 4, 2020 08:38
Show Gist options
  • Save chenhengqi/165695b5dd2966682ac4667ccc3a8123 to your computer and use it in GitHub Desktop.
Save chenhengqi/165695b5dd2966682ac4667ccc3a8123 to your computer and use it in GitHub Desktop.
keep Git Fork up to date

Add upstream

$ git remote add upstream https://github.com/TarsCloud/TarsGo.git

add upstream, use git remote -v to verify

Keep upstream updated

$ git fetch upstream

Apply changes

git merge upstream/master master
git push

Reference

How to keep your Git-Fork up to date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment