1

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?

Esther Fan - MSFT
  • 8,276
  • 4
  • 27
  • 25
eXavier
  • 4,821
  • 4
  • 35
  • 57

2 Answers2

4

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

Ruben Bartelink
  • 59,778
  • 26
  • 187
  • 249
TheLukeMcCarthy
  • 2,253
  • 2
  • 25
  • 34
  • I found it useful to install git 2.9 myself via `get-packageprovider -name chocolatey; install-package git` (i.e. install 2.9 or newer git via chocolatey, see www.hanselman.com/blog/AptGetForWindowsOneGetAndChocolateyOnWindows10.aspx) rather than letting the GCM install it (`install-package githubforwindows` had left me with git 2.8) – Ruben Bartelink Jul 30 '16 at 00:13
1

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

Sascha Gottfried
  • 3,303
  • 20
  • 30
  • outdated, see [other answer](http://stackoverflow.com/a/34757130/11635) - @eXavier can this be deleted and/or unaccepted please? – Ruben Bartelink Jul 29 '16 at 23:18