Easy Credential Caching for Git

Easy Credential Caching for Git

  • Comments 3

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.

Leave a Comment
  • Please add 4 and 8 and type the answer here:
  • Post
  • Ahh, that can be time-savior, I hate to re-enter password every time.

    Rajiv

    javarevisited.blogspot.in

  • Good to go.

  • For msysgit 1.8.1 and above:

    The wincred helper was added in msysgit 1.8.1. Use it as follows:

    git config --global credential.helper wincred

Page 1 of 1 (3 items)