Git git更换密码后,客户端授权更新方式

阅读(2776)

更改git的密码后,更新代码时遇到报错:

fatal: Authentication failed for XXXX

Mac下的处理方式:

1.清空现有存储的密码

git config --system --unset credential.helper

2.再次git pull就会要求输入密码

3.重新设置存储模式

git config --global credential.helper store

通过git config --global -l查看当前的存储模式。

更多存储模式:https://git-scm.com/book/zh/v2/Git-%E5%B7%A5%E5%85%B7-%E5%87%AD%E8%AF%81%E5%AD%98%E5%82%A8

Tags: