2016年12月26日月曜日

Githubでフォーク元の修正を取り込む手順メモ

1. フォーク元を追加
git remote add upstream git://github.com/<username>/<reponame>.git
2. 修正をフォーク先に取り込む
git fetch upstream
git merge upstream/master

3. 修正をfortした自分のレポジトリに反映
git push

これ、githubのweb上でできてほしいんだけどな。
なんでremoteとかも自動で設定されてないのか(そういうもんなんだろうか)



参考文献
http://rcmdnk.github.io/blog/2014/06/09/compouter-git/

0 件のコメント:

コメントを投稿