Github how to download

Let dive into all of them and see how to do it:

1. Clone a public repository

To clone a repository with Git you need your git client and the url of the repository. Normally cloning by https is used.

Once you have the url to the repository (e.g. https://github.com/mirumee/saleor), you already have the url for the git command. It’s the url + .git (e.g. https://github.com/mirumee/saleor.git)

GUI Client (Sourcetree)

For the GUI Git client Example I use Sourcetree.

Github how to download clone public repository Sourcetree click new
Click on New
Github how to download clone public repository Click on clone from url
Click on Clone from URL
Github how to download clone public repository You should see this dialog now. Enter the url into Source Url
You should see this dialog now. Enter the url into Source Url
Github how to download clone public repository After adding the Source URL you will see this. Adjust the Destination Path as required
After adding the Source URL you will see this. Adjust the Destination Path as required

Click on Clone and the downloading via Git begins.

Github how to download clone public repository Sourcetree is downloading(cloning) the repository
Sourcetree is downloading(cloning) the repository

After the download (cloning) process has finished it looks like this:

Github how to download clone public repository Downloading (cloning) from Github finished
Downloading (cloning) from Github finished

Git cli client

I use a terminal with the Git client on Mac OS for this example:

Github how to download clone public repository Navigate to the directory where the code should be clone into
Navigate to the directory where the code should be clone into

Github how to download clone public repository Execute git clone $url
Execute git clone $url

Github how to download clone public repository Git cli download (clone) in process
Git cli download (clone) in process

Github how to download clone public repository Git cli download (clone) process finished
Git cli download (clone) process finished

Summary

In both cases have you downloaded (cloned) the public Github repository successfully. Inside the directory (in this example saleor) you find code of the lastest master version.

2. Download a release from public Github repository

When you go to a public repository and want to download a release, it works like this:

Go to the website of the repository

Click on tags

You should see Releases and Tags. Click on Releases
Now you see all official (pre-)releases. Click on the version number in blue of the release you want

You see the details of this release. To download it click on Source Code (zip or tar.gz is your choice)

The download now works the same way you do a normal file download in your browser.

3. Download a single file from a public Github repository

Open the repository on Github
Click on the file you want and Github shows you it´s content.
Click on Raw to see the pure file content
Or right click on Raw, select (Save Link As …(Option name of Google Chrome)) and download it

You saw three methods to download something from GitHub.

Let me know if it helped.

Best regards,

Frank

Leave a Reply