Easy Credential Caching for Git

Posted on Code Plex See other posts from Code Plex
Published on Sat, 12 May 2012 00:30:00 GMT Indexed on 2012/05/30 16:48 UTC
Read the original article Hit count: 629

Filed under:

A common question since launching our Git support is whether there is a way to cache your username and password so you don’t have to enter it on every push.  Well thanks to Andrew Nurse from the ASP.Net team, there is now a great solution for this!

Credential Caching in Windows to the Rescue

Using the Git extension point for credential caching, Andrew created an integration into the Windows Credentials store. After installing git-credential-winstore instead of getting that standard prompt for a username/password, you will get a Windows Security prompt.

SecurityPrompt

From here your credentials for CodePlex will be stored securely within the Windows Credential Store.

cred-store

Setup

The setup is pretty easy. Download the application from Andrew's git-credential-winstore project. Launch the executable and select yes to have it prompt for credentials. That's it.

git-cred-store-accept

Make sure you are running the latest version of msysgit, since the credential's API is fairly new.

Thanks to Andrew for sharing his work.  If you have suggestions or improvements you can fork the code here.

© Code Plex or respective owner