Git 无法写入 sha1 文件名...致命:无法写入提交对象

时间:2021-02-05 00:51:12

标签: git rstudio

我已经安装了 git(版本 2.19.0.windows.1)。我正在尝试提交我在 Rstudio 中所做的更改,我正在尝试在 Rstudio 和 GitBash 中的 Git 以及我遇到相同错误的任何地方提交。

第一个错误是:

$ git commit --all -m 'Test 6'
fatal: couldn't set 'refs/heads/branchName'

在我尝试解决问题后,总是遇到下一个错误:

$ git commit --all -m 'Test 6'
error: unable to write sha1 filename .git/objects/2a/2efc0c4ac6c8c69e78c5555a1a2e5c21d2f3c1: Function not implemented
fatal: failed to write commit object

我试过了:

  1. git config --global core.fscache false
  2. 等待并重复 $ git commit 几次..

而且总是有帮助,但只是一次,下次我再次尝试提交时,我遇到了同样的错误。能否请您帮助我并告诉我,为什么会出现此错误以及如何解决这些错误?

非常感谢!

0 个答案:

没有答案