Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save super1-chen/c813043175671cebe6673915286168b0 to your computer and use it in GitHub Desktop.

Select an option

Save super1-chen/c813043175671cebe6673915286168b0 to your computer and use it in GitHub Desktop.
my note of how to sync fork repo

Usually in git there is only origin and local, in git hub as we have origin and upstream, we can sync by follow below commands.

$ git remote -v 

$ git remote add upstream [email protected]

$ git remote -v 

$ git fetch upstream

$ git merge upstream/master

$ git push origin master

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