Git fetch a specific commit by hash

前端 未结 3 1886
北荒
北荒 2020-12-10 11:40

Git allows to fetch from any given remote and reference, for example

git fetch  

So that those given com

3条回答
  •  旧时难觅i
    2020-12-10 12:16

    No. According to the manual, git fetch wants a refspec, the simplest form of which is a ref, and a bare SHA-1 isn't a ref. I.e., the commit has to have a name (branch, tag) on the remote for you to be able to fetch it.

提交回复
热议问题