从远程git仓库克隆后(以更好的代码),我进行了一些更改,提交并尝试推送:
git push origin master
错误:
错误:无法锁定现有信息/引用
致命:git-http-push失败
这种情况涉及已经存在的存储库。
我之前所做的是:
git config –global http.sslVerify falsegit initgit remote add [url]git clone- 变更资料
git commit
在'bettercodes',我无权访问git log。
我正在使用Windows。详细的错误是:
C:\MyWorkStuff\Projects\Ruby\MyProject\>git push origin master
Unable to create branch path https://user:password@git.bettercodes.org/myproject/info/
error: cannot lock existing info/refs
fatal: git-http-push failed
我之前克隆过,然后更改了代码并提交了。
git fetchbefore 解决了错误git pull。