Apparently you need to save a file called _netrc in %USERPROFILE%
So a quick little batch file :
@echo off SET /P HOST=What is the hostname i.e github.com? SET /P USERNAME=What is your username? SET /P PASSWORD=What is your password? echo machine %HOST% login %USERNAME% password %PASSWORD% > "%USERPROFILE%\_netrc"
9 comments:
Thank you! Such an obvious thing, you'd think they'd write an easy guide on their wiki...
worked.....
Thanks a ton
Worked for me too, thanks
Great! Made my day!
While code.google saiz ".netrc" i didn´t try "_netrc"...
Edit: whoops, you can´t edit, just delete and post again? Sry...
This one really worked Thank you!
I have tried setting this form other sites didn't worked but the secret was putting in a single line. The bat script is really handy.
Thanks a lot man! This save a lot of time.. =)
thx for help
Post a Comment