Why does Capistrano try to create a new branch when I ru开发者_Python百科n a deployment of my PHP application? My SCM is Git.
Turns out the branch is only used internally to ensure a clean working directory, from which to copy the release files.
Generally speaking, people tend to create a branch when they release an application to their production environment.
This way :
- They can continue activelly working on the main (development) branch,
- And, if needed, they can fix critical bugs on the release branch -- that one not being impacted by the current developments.
And they don't create a branch as soon as they deploy, they often at least create a tag -- from which they can branch if there is a bug that needs to be fixed before the next release of the development branch.
精彩评论