Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cache http git passwords in windows: mysysgit

Git: How can I cache password locally in windows machine. I have mysysgit and tortoisegit

Edit:
I use https

like image 566
Quintin Par Avatar asked Mar 24 '11 03:03

Quintin Par


People also ask

How do I cache credentials in Git?

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.

Where does Git store password on Windows?

The default is ~/. git-credentials .

How do I store multiple Git credentials in Windows?

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.

Where are passwords stored in Git?

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).


2 Answers

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
like image 85
Mark Longair Avatar answered Sep 30 '22 01:09

Mark Longair


You can install git-credential-winstore to save git passwords in Windows credentials manager

like image 35
KindDragon Avatar answered Sep 30 '22 00:09

KindDragon