Fastest way to download a GitHub project

前端 未结 8 1375
醉话见心
醉话见心 2020-12-22 17:14

I need to download the source code of the project Spring data graph example into my box. It has public read-only access. Is there is an extremely fast way of downloading thi

相关标签:
8条回答
  • 2020-12-22 17:50

    Updated July 2016

    As of July 2016, the Download ZIP button has moved under Clone or download to extreme-right of header under the Code tab:

    Download ZIP (2013)


    If you don't see the button:

    • Make sure you've selected <> Code tab from right side navigation menu, or
    • Repo may not have a zip prepared. Add /archive/master.zip to the end of the repository URL and to generate a zipfile of the master branch.

      http://github.com/user/repository/

    -to-

    http://github.com/user/repository/archive/master.zip
    

    to get the master branch source code in a zip file. You can do the same with tags and branch names, by replacing master in the URL above with the name of the branch or tag.

    0 讨论(0)
  • 2020-12-22 17:52

    I agree with the current answers, I just wanna add little more information, Here's a good functionality

    if you want to require just zip file but the owner has not prepared a zip file,

    To simply download a repository as a zip file: add the extra path /zipball/master/ to the end of the repository URL, This will give you a full ZIP file

    For example, here is your repository

    https://github.com/spring-projects/spring-data-graph-examples

    Add zipball/master/ in your repository link

    https://github.com/spring-projects/spring-data-graph-examples/zipball/master/

    Paste the URL into your browser and it will give you a zip file to download

    0 讨论(0)
提交回复
热议问题