Git credential manage

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git credential manage相关的知识,希望对你有一定的参考价值。

参考技术A Move a project to a new PC, do git push, a windows pops up requiring username and password.
But unfortunately, if filled in wrong password, git shows error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401 .
After that, push failed, and cannot get to type the password one more time. May fix this in Control Panel .
Open Control Panel - All Control Panel Items - Credential Manager (on windows 10 may need to choose Windows Credentials ), search for the credential.
For example, git:https://github.com , copy the corresponding value from the old PC to the new PC. And push again, push will succeed.
And perhaps use the following commands to get and set username & email:

Use Git Credential Managers to Authenticate to Azure Repos

https://docs.microsoft.com/en-us/azure/devops/repos/git/set-up-credential-managers?view=azure-devops

Install the Git Credential Manager

Windows

Download and run the latest Git for Windows installer, which includes the Git Credential Manager for Windows. Make sure to leave the Git Credential Manager installation option enabled when prompted.

技术图片   

 

配置命令

git config --global credential.helper manager

以上是关于Git credential manage的主要内容,如果未能解决你的问题,请参考以下文章

删除 git:'credential-manager' 不是 git 命令。来自 Mac

Git credential manage

~/.git-credentials 文件在 Windows 10 中的位置?

第23月第24天 git命令 .git-credentials

markdown Git Credential Helper

解决打开Intellij Idea后,一直弹出Git Credential Manager Enter credential