Git: How can I cache password locally in windows machine. I have mysysgit and tortoisegit
Edit:
I use https
If you're cloning GitHub repositories using HTTPS, you can use a credential helper to tell Git to remember your GitHub username and password every time it talks to GitHub. Turn on the credential helper so that Git will save your password in memory for some time. By default, Git will cache your password for 15 minutes.
The default is ~/. git-credentials .
Just prefix the origin path with your username and @, like so: [email protected]/repo/reporepo. git This allows the Windows credential manager to store multiple logins.
The default path for the git credential store is $HOME/. git-credentials (or $XDG_CONFIG_HOME/git/credentials, if the previous location doesn't exist).
In a more recent answer, VonC points out that you can put your username and password for a particular host that you access over https
in a file called _netrc
in your home directory, and git will use them for the HTTP transport. For example, if you're trying to access the repository referred to by the URL https://[email protected]/you/project.git
, you would put the following in _netrc
:
machine github.com
login you
password yourpassword
You can install git-credential-winstore to save git passwords in Windows credentials manager
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With