如何解决错误"stdout | fatal: A branch named 'deploy-old' already exists."



当使用git资源时,我得到以下错误:

INFO : Recipe: /Users/ironsand/dev/itamae_myserver/recipe.rb
ERROR :     stdout | fatal: A branch named 'deploy-old' already exists.
ERROR :     Command `cd /opt/my_project && git branch -m deploy-old` failed. (exit status: 128)
ERROR :   git[/opt/my_project] Failed.

如何解决这个问题?

为了解决这个问题,我登录服务器并删除分支deploy-old

ssh my_server
cd /opt/my_project
sudo git branch -d deploy-old

最新更新