git - How to download the flat file from GitHub? -


i'm trying download flat text file github local path.

wget  http://github..../exercise/tree/master/..txt 

after running command see file downloaded html tags.

how file content alone downloaded git path?

well thats pretty easy. use link format:

https://raw.githubusercontent.com/<username>/<repo>/<branch>/folder/filename.c

edit: thx comment


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -