How to cache credentials for VS online in posh-git?

584 Views Asked by At

I use Visual Studio online with git and PowerShell (posh-git). I setup alternate credential in my VS profile so I have username/password. Whenever I issue git pull in posh-git I have to enter my credentials - it is quite annoying. Can I cache it somehow at least while the PowerShell is opened?

2

There are 2 best solutions below

1
On BEST ANSWER

According to popular posh-git credentials search results you need a small helper app called git-credential-winstore on Codeplex that is perfect for your use case.

References

1
On

Sascha Gottfried answer is right but it is a little out of date now, you now need to install Git Credential Manager for Windows

https://github.com/Microsoft/Git-Credential-Manager-for-Windows/

Download Link: https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/latest