赞
踩
在push代码的时候,报了一个[remote rejected] (failed to update ref)的错,简单记录下
解决方式1:
git config remote.origin.push refs/heads/*:refs/for/*
再push,未成功
解决方式2:
观察git push日志,发现
remote: error: cannot lock ref 'refs/heads/release/v500_role_fix': 'refs/heads/release' exists; cannot create 'refs/heads/release/v500_role_fix'
推测是因为分支名的问题,release打头的分支名会提示已存在,所以把分支名改为feature/v500_role_fix
成功push!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。