Git016--常见问题汇总

一。fatal: Authentication failed 

问题描述:git clone http://XX  时,提示fatal:Authentication failed...

问题原因:账号、密码等错误导致(更换ERP密码,引起git clone代码时报错)

解决方案:

//1.重置
git config --system --unset credential.helper
//2.设置全局账号/邮箱
git config -–global user.name "xxx"   
git config –-global user.email "[email protected]" 
//3.
git clone https://xxx  //会提示填写账号/密码

猜你喜欢

转载自www.cnblogs.com/kaixinyufeng/p/9165657.html