MSD
MSD

Reputation: 1407

How to download the flat file from GitHub?

I'm trying to download the flat text file from GitHub to local path.

wget  HTTP://GitHub..../exercise/tree/master/..txt

After running the command i see the file downloaded with HTML tags.

How do I get the file content alone downloaded from the Git path?

Upvotes: 1

Views: 253

Answers (1)

ckruczek
ckruczek

Reputation: 2410

Well actually thats pretty easy. Use this link format:

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

Edit: thx to the comment

Upvotes: 2

Related Questions