Git 克隆失败,"refs/heads/master does not point to a valid object"


C:Usersxxxtemp>git clone D:userdataDropboxgitrepomain.git
Cloning into 'main'...
error: unable to find 0fb6364a712239ae87e4abb35e155a04e960c788
error: refs/heads/master does not point to a valid object!
done.
error: Trying to write ref HEAD with nonexistent object 0fb6364a712239ae87e4abb3
5e155a04e960c788
fatal: Cannot update the ref 'HEAD'.
fatal: The remote end hung up unexpectedly

我的 git 存储库存储在 Dropbox 中,在我自己的计算机上,此命令工作正常,但在另一台计算机上它给了我上述错误。有什么想法吗?(当然存储库是同步的)

谢谢。

此问题的根本原因是 dropbox 由于写入权限而不是 Git 问题而没有完全同步我的存储库。

也许你没有编写 git 文件的特权。

相关内容

最新更新