首页 > 技术文章 > 使用git Bash Here 绑定账号密码错误后 无法自动重新绑定

maxiaolong 2019-04-18 15:25 原文

新安装的git 要打开gitbash 运行下面两个命令:
1 git config --global user.name "Your Name"
2 git config --global user.email you@example.com

然后就可以 git pull http://jfsdfjsdjfjsd.git
当你使用git Bash Here输入错误密码后 无法自动让你重新输入密码,一直报错:

Cloning into 'shopping'...
remote: Incorrect username or password ( access token )
fatal: Authentication failed for 'https://gitee.com/caobiandejiezhi66/shopping.git/'

这个时候需要再次输入命令:

git config --system --unset credential.helper

这样在pull或者clone的时候会再次提示让你 输入账号和密码。

推荐阅读