Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git download, not clone fetch etc

Tags:

git

github

Ok, so 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

im on windows 7 and dont want to have to install curl or wget. only native tool?

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

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

like image 775
lukemh Avatar asked Nov 12 '10 04:11

lukemh


People also ask

Is git clone the same as download?

When you download the repo it just gives you all the source files with no . git so you dont have the repo. When you clone you get a copy of the history and it is a functional git repo.

Should I git clone or download zip?

If you're intended to contribute to this repo, then you should clone it. Without cloning you're not able to push changes. It will take longer because you must download whole diff history (many git objects). As bigger projects is as longer it would take, but only once (later you download only newer commits).

How do I download an entire folder from GitHub?

Step1: Input github url to the field at the top-right. Step2: Press enter or click download for download zip directly or click search for view the list of sub-folders and files. Step3: Click "Download Zip File" or "Get File" button to get files.

How do I download from git?

To do this, go to the GitHub page for the workshop, click on the green Code button, then download the repository as a ZIP file. The filename may be different than what's in the picture. Find the downloaded . zip file on your computer, likely in your Downloads folder.


2 Answers

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.

like image 160
Pace Avatar answered Oct 06 '22 13:10

Pace


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.

like image 32
SierraJuliet Avatar answered Oct 06 '22 14:10

SierraJuliet