本文主要是介绍remote: error: cannot lock ref ‘refs/heads/dev/mz/dev‘: ‘refs/heads/dev‘ exists; cannot create ‘refs,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
remote: error: cannot lock ref 'refs/heads/dev/mz/dev': 'refs/heads/dev' exists; cannot create 'refs/heads/dev/mz/dev'
To http://xx.xx.xx.xx/xxxx/xx.git
原因为:远程有一个分支为dev分支,然后本地新创建了一个分支为dev/mz/dev
所以会有问题;
解决:git branch -m feature/mz/dev
修改分支名称即可!
这篇关于remote: error: cannot lock ref ‘refs/heads/dev/mz/dev‘: ‘refs/heads/dev‘ exists; cannot create ‘refs的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!