January 17, 2013

Ask git to remember your credentials

I searched for the tenth time how to tell git to remember my credentials in github, then it is time to make a little note to myself.

I am running a few instances of Ubuntu, and each time I want to make a pull from Github I need to enter my username and password.

To tell git to remember them, just do

git config credential.helper store

and then

git pull

After entering name and password one last time, those details will be remembered later. The credentials are stored in the disk, with the disk permissions. In my case, that is good enough.