This topic created in 1369 days ago, the information mentioned may be changed or developed.
由于种种原因, 能再设备 a 上访问仓库, 但 clone, 拷贝放到设备 b 后有一些问题(b 设备不能访问到远程仓库, 就当断网设备吧).
例如
git diff [sha] 比较久以前的 commit 会报错 fatal: Could not read from remote repository.
git blame file 也报错. fatal: Cannot read blob a077d40 for path xxxx.cpp
原因应该是加载历史比较旧以前的 commit 时, 需要从远程仓库加载, 无法访问的话就会报错.
git fetch --unshallow 试过了. 不管用.
Supplement 1 · Jul 31, 2022
自己顶一下..
顺便 @
livid 站长能否帮忙挪到 问与答 板块