-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Masahiro Rikiso edited this page Sep 4, 2017
·
1 revision
まず forkして、forkしたreposをcloneする。
$ git clone <forked-repos>
fork元reposを remoteに追加しておく
$ git remote add upstream <msrks-repos>
定期的に最新バージョンを取り込む
#もしブランチで作業していたら masterに戻る
$ git checkout master
#最新バージョン取り込み
$ git fetch upstream
$ git merge upstream/master
#自分のgithubに反映
$ git push origin master
開発ブランチを作る
$ cd socket-app
$ git checkout -b <branch-name>
ブランチ上で開発し、コミットする
$ touch hogehoge.txt
$ git add -A
$ git commit -m "hogehoge"
masterにマージする
$ git checkout master
$ git merge <branch-name>
ブランチをgithubにpushする
$ git checkout <branch-name>
$ git push origin <branch-name>