V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
ilotuo
V2EX  ›  git

如何完整下载 git 远程仓库?

  •  
  •   ilotuo · Jul 28, 2022 · 1188 views
    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 站长能否帮忙挪到 问与答 板块
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3747 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 10:42 · PVG 18:42 · LAX 03:42 · JFK 06:42
    ♥ Do have faith in what you're doing.