Shared publicly  - 
How to use a .netrc file for automatic logins to http/https/ftp/etc.

1) Create a .netrc file in your home directory
2) Add machine definitions like:

machine login myusername password mypass

machine login myusername password mypass

3) chmod 600 .netrc to lock it down
4) Now try using curl with the -n/--netrc option, for example:

curl -n > helloworld.html
That will be able to pull from a private repository on github using the credentials from the .netrc file.
Linux+'s profile photo
If it still asks, one fix is to run dos2unix on the file in case it's the wrong format (this helped me just now).
Add a comment...