git
› Pro Git
› Atlassian Git Tutorial
› Pro Git 简体中文翻译
› GitX
cheneydog
V2EX  ›  git

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

  •  
  •   cheneydog · Oct 20, 2020 · 3252 views
    This topic created in 2181 days ago, the information mentioned may be changed or developed.
    hash 值已知,分支不定的情况下,能不能一条命令下载项目。
    2 replies  •  2020-10-21 03:27:46 +08:00
    SoloCompany
        1
    SoloCompany  
       Oct 20, 2020   ❤️ 2
    不能, git 甚至被设计为在没有任何 ref 的情况下无法远程访问一个 dangling hash object
    git fetch 是不支持一个 hash 的
    msg7086
        2
    msg7086  
       Oct 21, 2020   ❤️ 1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   978 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 22:25 · PVG 06:25 · LAX 15:25 · JFK 18:25
    ♥ Do have faith in what you're doing.