首頁  >  問答  >  主體

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 天前1252

全部回覆(3)我來回復

  • PHPz

    PHPz2017-05-02 09:23:42

    這種問題一般是git伺服器上有些檔案直接生成了,或是直接在伺服器上修改了,導致git會認為伺服器上的更新,
    你應該先git pull
    讓後 gir push origin master

    回覆
    0
  • 迷茫

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

    git commit -m '消息'

    回覆
    0
  • 滿天的星座

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

    先git pull 在push

    回覆
    0
  • 取消回覆