1 Git报错fatal:Authentication failed for‘https://git……解决方法 方法一配置全局参数: git config --global user.name “xxx” git config --global user.email “xxx” 方法二: git remote -v git remote remove origin git remote add origin xxx 方法三(可以解决): git config --system --unset credential.helper 执行这个命令之后,你可以重新写入账号密码,这样就可以重新提交代码了。