V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
cheneydog
V2EX  ›  git

git 如何以最少的下载量,直接下载指定 hash

  •  
  •   cheneydog · 2020-10-20 21:13:22 +08:00 · 2228 次点击
    这是一个创建于 1255 天前的主题,其中的信息可能已经有所发展或是发生改变。
    hash 值已知,分支不定的情况下,能不能一条命令下载项目。
    2 条回复    2020-10-21 03:27:46 +08:00
    SoloCompany
        1
    SoloCompany  
       2020-10-20 22:41:45 +08:00   ❤️ 2
    不能, git 甚至被设计为在没有任何 ref 的情况下无法远程访问一个 dangling hash object
    git fetch 是不支持一个 hash 的
    msg7086
        2
    msg7086  
       2020-10-21 03:27:46 +08:00   ❤️ 1
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2226 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 410ms · UTC 16:13 · PVG 00:13 · LAX 09:13 · JFK 12:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.