Avoid Typing Password on Git Every Time on Windows
Today I’ve updated Android Studio and, when I wanted to fetch stuff from git, it failed (connection issues). Initially, I thought it was because I’m behind a proxy, but all proxy settings were working OK (unchanged, also command line worked just fine).
Apparently, the git plugin doesn’t ask (anymore?) for a password… So, I need a way to allow me not to type in the password every time (while still using
https as protocol).
There are more ways to solve the problem:
- Put the passowrd in the URL. This is obviously the most insecure; you’d end up with something like
12git checkout https://user:[email protected]:port
- If you’re using a git version > 1.8, then you can do (on windows):
12git config --global credential.helper wincred
- Newer git comes with its own management thing which uses the OS security. You’ll get a nice dialog prompting you for credentials. It seems that once you’ve entered them correcly, they’re reused every time (no timeout).
A little experiment: If you find this post and ad below useful, please check the ad out :-)