Git flow - managing differences between master and develop

故事扮演 提交于 2019-12-06 17:56:26

I've been using gitflow for a while. Here's my practice for it:

  1. Everything goes into develop until you feel you are ready to start preparing the release. This may be any timeframe between minutes and days from the last deployment.
  2. Create a release branch off of develop, or better yet - off of the last commit on the develop branch that should really go into the release. The idea is to minimise the cherry-picks or reverts between develop and release, as they cause headaches.
  3. Keep committing into release, unless you are adding/changing something that cannot go into the release branch. In this case, commit to develop, but again try to minimise to reduce the merge headache.
  4. When ready, merge the release branch into develop and master, test and deploy.
  5. Go back to 1.

Some GUI tools wrap git nicely and offer one-click gitflow actions, but you should always strive to know what happens under the hood to troubleshoot these 'automatic' tools when they fail.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!