マスターがチェックアウトされている実稼働 Web サイトと、機能ブランチで開発している開発 Web サイトがあります。
機能がマスターにマージされると、開発サイトでこれを行います。
(currently on the new-feature branch)
$ git commit -m"new feature finished"
$ git push
$ git checkout master
$ git merge new-feature
$ git push
そして本番サイトでは:
(currently on master branch)
$git pull
これは私にとってはうまくいきます。しかし、クライアントから電話があり、ウェブサイトの小さな変更をすぐに必要とする場合があります。マスターとプッシュマスターの本番環境でこれを行うことができ、これは正常に機能します。
しかし、小さな変更に機能ブランチを使用すると、ギャップが発生します。
(On production on branch master)
$ git branch quick-feature
$ git checkout quick-feature
$ git push origin quick-feature
$ edit files...
$ git add .
$ git commit -m"quick changes"
$ git push # until this point the changes are live
$ git checkout master #now the changes are not live anymore GAP
$ git merge quick-feature # now the changes are live again
$ git push
このワークフローの意図を明確にすることができれば幸いです。もっと良いものをお勧めできますか?