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

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

  •  
  •   cheneydog · Oct 20, 2020 · 2942 views
    This topic created in 2021 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   ·   Solana   ·   981 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 23:45 · PVG 07:45 · LAX 16:45 · JFK 19:45
    ♥ Do have faith in what you're doing.