Retrieve specific commit from a remote Git repository

后端 未结 10 1610
谎友^
谎友^ 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:53

    In a project we had a problem so that we had to revert back to a certain commit. We made it with the following command successfully:

    git reset --hard 
    

提交回复
热议问题