I am running
git pull
on a repository in command-line. It asks for username and password. When I complete them the pull is successful, but I would like to run git pull from batch file and I would like my batch file to provide the asked username and password. How can I run git pull from batch file if my username is myusername and my password is mypassword? I’ve tried with the following (in my batch file):
cd mylocation
git pull
myusername
mypassword
But this was not successful. How can I achieve what I want?
Run this command:
and it will remember your username and password after entering it once more.