Download Git repo without all the .git stuff? Download Git repo without all the .git stuff? git git

Download Git repo without all the .git stuff?


github has a link to download a .zip archive of the repo, so try using

wget https://github.com/[user]/[repo]/archive/[branch].zip

with [user], [repo], and [branch] replaced with the appropriate fields.


As far as I know, the closest thing you can do is to do a git clone --depth=1 (to avoid retrieving more information from the server than you need for the latest version) and then delete the .git directory afterwards. As far as git is concerned, the .git directory is the repo; the checked-out files are just there for your convenience. :)


2nd part : You can try the username and repo name substituted correctly

wget http://github.com/[username]/[repo]/archive/master.zip