lukemh
lukemh

Reputation: 5323

git download, not clone fetch etc

I want a command line tool to download a Github repo without creating a local git repo.

One idea is a download tool to download Github zips from a url like

https://github.com/lukeholder/fuel-website/zipball/master

I'm on Windows 7 and don't want to have to install curl or wget and use only a only native tool.

It would be preferable to not download a zip, but just somehow clone the repo and not have the local git repo ever created.

Do you have any ideas without using git? In effect it would be a git clone and del .git directory

Upvotes: 25

Views: 41821

Answers (2)

SierraJuliet
SierraJuliet

Reputation: 177

Immediately above the main directory (to the right) for the folder/files being viewed is a tab with a URL and a "Download" button to pull all the files.

If you DO NOT see those options then you must click the directory link above the viewing area (i.e. some name > some folder > some other folder) to essentially back out of the directory until you see the option to "Download" and that is the entire compressed file to be downloaded.

Upvotes: 3

Pace
Pace

Reputation: 43817

If you were willing to still use git (just not create a repository) you could do it with git archive as explained in this question.

Upvotes: 8

Related Questions