Home  >  Q&A  >  body text

sourcetree - git 提交 遇到 unpack failed: error Missing commit

如何解决?求大神。

各位 已经解决,原因是本地索引出错:参考:http://blog.sina.com.cn/s/blog_629b701e01017ndf.html

git 常见问题:http://z2ee.com/gerrit/ 以及用到的 gc 命令 :http://gitbook.liuhui998.com/4_10.html

PHP中文网PHP中文网2728 days ago1254

reply all(3)I'll reply

  • PHPz

    PHPz2017-05-02 09:23:42

    This kind of problem is usually caused by some files being directly generated on the git server, or modified directly on the server, causing git to think it is updated on the server,
    You should git pull first
    After that gir push origin master

    reply
    0
  • 迷茫

    迷茫2017-05-02 09:23:42

    git commit -m 'the message'

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-02 09:23:42

    First git pull and then push

    reply
    0
  • Cancelreply