You should just do it with the raw
URL of your file.
For example to download the README of AFNetworking:
curl https://raw.githubusercontent.com/AFNetworking/AFNetworking/master/README.md > ADREADME.md
As it is a public repo you don't need any credentials.
Please note the kind of url: raw.githubusercontent.com/path/to/file