1 min read

Downloading Single Files From Github

Did you ever just want to download one single file from a Github repository? Here’s a nice linux command courtesty of this Stack Overflow Post.

On the file of interest, click the “raw” button on the upper right-hand corner.

On MAC:

curl https://raw.githubusercontent.com/broadenyourstatisticalhorizons/bysh_book/master/data/elephant.csv -o i_name_it_elehpant.csv

On UNIX:

wget https://raw.githubusercontent.com/broadenyourstatisticalhorizons/bysh_book/master/data/elephant.csv