github上面有很多优质的资源,但时间久了,整个项目会很大,有的时候,只需要下载项目里面的一个文件,但github并没有提供这个功能.
比如下载:
https://github.com/belm/belm.github.io/blob/master/_posts/2015-01-04-dns.markdown
这个md文件,在命令行执行
wget https://github.com/belm/belm.github.io/raw/master/_posts/2015-01-04-dns.markdown
只需要把blob替换成raw即可。