Git和令人讨厌的“错误:无法锁定现有的信息/引用致命的” [英] Git and nasty "error: cannot lock existing info/refs fatal"
问题描述
从远程git仓库克隆(在bettercodes)
后,我做了一些修改,提交了
并试图推送:
git push origin master
错误:
错误:无法锁定现有信息/ refs
致命:git-http-push失败
此案件涉及已存在的存储库。
之前做过的是:
-
git config -global http.sslVerify false $ c>
-
git init
-
git remote add [url]
-
git clone
- 更改数据
git commit $ c
在'bettercodes'我无法访问git log。
我正在使用Windows。
详细错误是:
C:\MyWorkStuff\Projects\Ruby\MyProject\> ; git push origin master
无法创建分支路径https:// user:password@git.bettercodes.org/myproject/info/
错误:无法锁定现有信息/ refs
致命错误: git-http-push失败
我克隆之前,然后更改了代码并提交。
解决方案您想尝试:
git gc --prune = now
请参阅 https://www.kernel.org/pub/software/scm/git/docs/git-gc.html
After cloning from remote git repository (at bettercodes) I made some changes, commited and tried to push:
git push origin master
Errors with:
error: cannot lock existing info/refs
fatal: git-http-push failedThis case regards already existing repository.
What I did before, was:
git config –global http.sslVerify false
git init
git remote add [url]
git clone
- change data
git commit
At 'bettercodes' I have no access to git log.
I'm using Windows. The detailed error was:
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
I cloned before, then changed the code and committed.
解决方案You want to try doing:
git gc --prune=now
See https://www.kernel.org/pub/software/scm/git/docs/git-gc.html
这篇关于Git和令人讨厌的“错误:无法锁定现有的信息/引用致命的”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!