snehapriya katikala
snehapriya katikala

Reputation: 25

curl command to download a original file from organisation's git repo using curl

I am trying to download a file from git reposiroty by using "curl -u : -o -O -L " But it is downloading the html file and not the exact .py file which i mentioned in curl command.

Kindly help with this

Upvotes: 1

Views: 1061

Answers (1)

Paolo Mossini
Paolo Mossini

Reputation: 1098

You have to reference to the "raw" version of the file:

https://raw.githubusercontent.com/user/repository/branch/filename

Upvotes: 1

Related Questions