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"