使用git Bash Here 绑定账号密码错误后 无法自动重新绑定


新安装的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的时候会再次提示让你 输入账号和密码。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM