Download specific files from github in command line, not clone the entire repo

前端 未结 5 1146
灰色年华
灰色年华 2021-02-05 09:18

How do I download just 2 files from github using command line ?
Something in the lines of :

git fetch git://github.com/username/Project.git/file1
git fetch          


        
5条回答
  •  闹比i
    闹比i (楼主)
    2021-02-05 10:05

    In new UI interface(about June 2020), if your file url is

    https://github.com/StellarCN/scp_zh/blob/master/fonts/SimHei.ttf
    

    then

    wget https://github.com/StellarCN/scp_zh/blob/master/fonts/SimHei.ttf?raw=true
    

提交回复
热议问题