Skip to content

Instantly share code, notes, and snippets.

@uupaa
Last active March 14, 2018 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uupaa/4e179b1f720d564e2d3e3f3ec4573e2f to your computer and use it in GitHub Desktop.
Save uupaa/4e179b1f720d564e2d3e3f3ec4573e2f to your computer and use it in GitHub Desktop.
GitHub flow memo

GitHub Flow

http://www.atmarkit.co.jp/ait/articles/1401/21/news042.html

feature ブランチ作成

git checkout -b {{new-feat}}
git push origin {{new-feat}}

push

git push

push すると、GitHub上でプルリクエストが作成される

masterへマージ

GitHubのGUIを使わずに手動でやる場合はこちら。基本的にはこれはやらなくても良い

git checkout master
git merge --no-ff {{new-feat}}

master の変更を取り込む

乖離が進むと master へのマージ作業が辛いので、こまめに master の変更を new-feat に取り込む

git checkout {{new-feat}}
git merge master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment