I have Capistrano deploying a branch devin a staging environment
set :branch, fetch(:branch, "dev")
However, once the deployment is complete, it moves the code base to a branch named deploy
$ git branch
* deploy
dev
How to configure Capistrano to switch to another branch, for example staging? Or is there a way to make him stay on a branch dev?
I could not find any information in the capistrano readme file or in the source code.
source
share