使用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.
如何解决问题?
答案 0 :(得分:0)
要解决此问题,请登录服务器并删除分支deploy-old
。
ssh my_server
cd /opt/my_project
sudo git branch -d deploy-old
之后我可以毫无错误地应用食谱。