fatal: Authentication failed for解决方法

1.如果push遇到在输入密码是熟错后,就会报这个错误fatal: Authentication failed for
解决办法:

git config --system --unset credential.helper

之后你在push就会提示输入名称和密码

免输入用户密码方法:

git config --global credential.helper store

此时,会在你本地生成一个文本,用于记录你的账号和密码。
再操作一次git pull(clone 或 push)操作后,它会提示你输入账号密码,这一次输入成功后,就不需要再次输入密码了。

原创文章 223 获赞 57 访问量 12万+

猜你喜欢

转载自blog.csdn.net/xixihahalelehehe/article/details/105637923