Git和令人讨厌的“错误:无法锁定现有的信息/引用致命的” [英] Git and nasty "error: cannot lock existing info/refs fatal"

查看:185
本文介绍了Git和令人讨厌的“错误:无法锁定现有的信息/引用致命的”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从远程git仓库克隆(在bettercodes)
后,我做了一些修改,提交了
并试图推送:

  git push origin master 

错误:


错误:无法锁定现有信息/ refs

致命:git-http-push失败


此案件涉及已存在的存储库。



之前做过的是:


  1. git config -global http.sslVerify false

  2. git init

  3. git remote add [url]

  4. git clone

  5. 更改数据
  6. git commit


  7. 在'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 failed

    This case regards already existing repository.

    What I did before, was:

    1. git config –global http.sslVerify false
    2. git init
    3. git remote add [url]
    4. git clone
    5. change data
    6. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆