How to get certain commit from GitHub project

后端 未结 11 1274
名媛妹妹
名媛妹妹 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

    To just download a commit using the 7-digit SHA1 short form do:

    Working Example:

    https://github.com/python/cpython/archive/31af650.zip  
    

    Description:

     `https://github.com/username/projectname/archive/commitshakey.zip`
    

    If you have the long hash key 31af650ee25f65794b75d4dfefed6fe4758781c1, just get the first 7 chars 31af650. It's the default for GitHub.

提交回复
热议问题