Skip to content

Instantly share code, notes, and snippets.

@toyowata
Last active November 18, 2016 16:52
Show Gist options
  • Save toyowata/607b736589520d94538c to your computer and use it in GitHub Desktop.
Save toyowata/607b736589520d94538c to your computer and use it in GitHub Desktop.
Fork/Cloneしたリポジトリを本家リポジトリに追従する
$ git remote add upstream git@github.com:mbedmicro/mbed.git
$ git fetch upstream
$ git merge upstream/master
$ git push

$ git remote add xxx_work git@github.com:mbedmicro/mbed_private_xxx.git

[privete repo] You need to have the latest from mbed – master and then create a new remote (this is the URL of the new repo). Then push from the current mbed – master to the new –remote master.

[pull request from private repo] I had to merge into my public repo using a branch and then make the pull request to mbedmicro mbed master

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