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/'
報錯就是因為你輸入的賬號或者密碼錯誤辱姨,導(dǎo)致驗證失敗茴恰。
方法一配置全局參數(shù):
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
執(zhí)行這個命令之后该窗,你可以重新寫入賬號密碼醋寝,這樣就可以重新提交代碼了。