Gitでブランチ切って作業して、マージする。

git flowのルールにそって 作業しない場合に

$ git branch
* master

# ブランチカット
$ git checkout -b feature-create-api
feature-create-api

$ git add .
$ git commit -am "commit message!"
$ git push -u origin feature-create-api

$ git checkout master
$ git merge --no-ff feature-create-api

qiita.com