When I want to merge my updates from development to production I am naturally running multiple git pull
and git push
commands to get the job done. For every single one of those commands Git will ask me for my password. (You may ask why I have to do multiple pull/push, well, just to make sure I include everything in case someone else pushed to my branch or production branch before me).
I want to avoid entering my password four times, I know there is a non-secure method to store credentials with Git, but that's not what I ask. What I ask is to enter my password just once and "magically" expect Git to remember it for a few seconds before it asks me again. Is there a built-in support for this or I have to do something on my own?
UPDATE: Quoting from my comment below :
I have tried
git config --global credential.helper 'cache --timeout=300'
and now if I rungit config --global --edit
I can see my config file having this line under[credential]
:helper = cache --timeout=300
. However, I try a dummy commandgit pull
, enter password andgit pull
again, but I am asked for password again.
Any idea what is wrong ? My git version is 1.9.1 and I saw that the credential.helper is introduced in an earlier version.