How to get certain commit from GitHub project

后端 未结 11 1244
名媛妹妹
名媛妹妹 2020-12-07 07:27

I need to download the Facebook API from GitHub. Normally, I just click on the \'Downloads\" tab to download the latest source code. In this case, I need an older commit: 91

11条回答
  •  庸人自扰
    2020-12-07 07:52

    If you want to go with any certain commit or want to code of any certain commit then you can use below command:

    git checkout 
    git reset --hard  
    git push --force
    

    Example:

     git reset --hard fbee9dd 
     git push --force
    

提交回复
热议问题