Update failed remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied Authentication failed for 'https://gitlab.com/npc-work/npc-work-dev/npc-work-android/npc.git/'
报错就是因为你输入的账号或者密码错误,导致验证失败。
方法一配置全局参数:
git config --global user.name “xxx”
git config --global user.email “xxx”
1
2
方法二:
git remote -v
git remote remove origin
git remote add origin xxx
1
2
3
方法三(可以解决):
git config --system --unset credential.helper
1
执行这个命令之后,你可以重新写入账号密码,这样就可以重新提交代码了。