Skip to content

Instantly share code, notes, and snippets.

@toyowata
Last active February 16, 2022 09:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toyowata/c740ff5b580a53e944d1e98f9b145d69 to your computer and use it in GitHub Desktop.
Save toyowata/c740ff5b580a53e944d1e98f9b145d69 to your computer and use it in GitHub Desktop.
How to sync forked repository

Do this once:

$ git remote add upstream git@github.com:armmbed/mbed-os.git

And do this when need to sync:

$ git fetch upstream
$ git merge upstream/master
$ git push

Merge upstream branch to remote branch:

$ git fetch upstream
$ git merge upstream/develop
$ git push origin HEAD:develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment