I followed these instructions to the letter, including the part about password caching. It seems like the instructions are wrong, because every time I git push origin
A similar error is 'credential-wincred' is not a git command
wincred
is for the project git-credential-winstore which is no longer maintained.It was replaced by Git-Credential-Manager-for-Windows maintained by Microsoft open source.
Download the release as zip file from link above and extract contents to
\cygwin\usr\libexec\git-core
(or \cygwin64\usr\libexec\git-core
as it may be)
Then enable it, (by setting the global .gitconfig
) - execute:
git config --global credential.helper manager
How to use
No further config is needed.
It works [automatically] when credentials are needed.
For example, when pushing to Azure DevOps, it opens a window and initializes an oauth2 flow to get your token.
ref:
https://github.com/babun/babun/issues/318
https://github.com/Microsoft/Git-Credential-Manager-for-Windows#installation-in-an-msys2-environment