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
修改分支名称即可!

你可能感兴趣的:(git,git,提交报错)