从远程git存储库克隆后(在更好的代码中)我做了一些更改,提交并尝试推送:
git push origin master
Run Code Online (Sandbox Code Playgroud)
错误:
错误:无法锁定现有信息/引用
致命错误:git-http-push失败
此案例涉及已存在的存储库.
我以前做过的是:
git config –global http.sslVerify falsegit initgit remote add [url] git clonegit 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
Run Code Online (Sandbox Code Playgroud)
我之前克隆过,然后更改了代码并提交了.
完整的错误是:
远程:错误:无法锁定引用“refs/heads/fix/add_overlay”:引用已存在
我正在使用 SourceTree,但我认为这应该不重要。我一直尝试推送,但不断收到此错误,我该如何解决?