Sometimes I need to access my Git repositories for a short period of times from my server. Everytime that I pull my repository, it asks for my username and password. It becomes really annoying.
Git provides a neat little helper called git-credential-cache. It temporarily stores passwords in memory.
git config credential.helper cache --timeout 3600 git pull origin master Username: <type your username> Password: <type your password>
By default, --timeout is set to expire in 900 seconds, which is 15 minutes. I set mine to time out in 1 hour.