1

I have setup GitforWindows in my Windows 7 64Bit pretty well with Credential manager as "Wincred".

Yet when I run some commands like git remote prune origin in GitBash, it gives following error in console, though runs the command:

Failed to load advapi32.dll

Why is that ? If there is something need to be done with Credential manager settings, then I need full explanation of how to do those settings and what each setting means.

Note: This problem I have only with some commands, other commands are running just fine without any errors.

Vicky Dev
  • 1,893
  • 2
  • 27
  • 62

1 Answers1

6

If you are using the latest Git for Windows, make sure to set your credential helper to manager, not WinCred (which was obsoleted some times ago)

git config --global credential.helper manager

That will use the GCM-core (Git-Credential-Manager-Core).

As mentioned here:

It's the successor to the Windows Credential Store for Git (git-credential-winstore), which is no longer maintained.

Compared to Git's built-in credential storage for Windows (wincred), which provides single-factor authentication support working on any HTTP enabled Git repository, GCM provides multi-factor authentication support for Azure DevOps, Team Foundation Server, GitHub, and Bitbucket.

Updte 2021: GCM-Core is now the up-to-date solution, cross-platform Windows-Linux-Mac.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 1
    @RokoC.Buljan True. I have updated the answer accordingly: GCM-Core is the current solution. – VonC Oct 01 '21 at 12:20