Untitled

DATA DOUBLE CONFIRM

Downloading a folder from Github

There are occasions where we might want to download only a folder from someone's Github repository instead of the entire repository (at least for me, yes). After doing some Googling, I finally managed to find the way to do it. This is for Windows.

Outlining the steps involved as follows (using the 'notebooks' folder from my repository as an example):

1) Go to http://subversion.apache.org/packages.html and install TortoiseSVN. Choose your respective OS. Will be good to tick all boxes when installing.

2) For the Github folder url, replace tree/master with trunk. So for example, https://github.com/hxchua/datadoubleconfirm/tree/master/notebooks will become https://github.com/hxchua/datadoubleconfirm/trunk/notebooks.

3) Go to the local folder (on your laptop) where you would like to download the Github folder to. Right-click and select SVN Checkout....

4) Indicate the modified url in Step 2 under URL of repository:.

5) Click OK.

Tadah! The folder will be downloaded.

Alternatively, you can make use of the command line, if you're familiar with command line, and write svn checkout https://github.com/hxchua/datadoubleconfirm/trunk/notebooks after you have TortoiseSVN installed.

References:

https://stackoverflow.com/questions/32723100/svn-is-not-recognized-as-an-internal-or-external-command-operable-program-or

https://stackoverflow.com/questions/1625406/using-tortoisesvn-via-the-command-line/13559128

Tags:

135 views