Retrieve specific commit from a remote Git repository

后端 未结 10 1860
谎友^
谎友^ 2020-11-22 06:32

Is there any way to retrieve only one specific commit from a remote Git repo without cloning it on my PC? The structure of remote repo is absolutely same as that of mine and

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 06:41

    I think 'git ls-remote' ( http://git-scm.com/docs/git-ls-remote ) should do what you want. Without force fetch or pull.

提交回复
热议问题