rev(东↑西↓)
rev(东↑西↓)
Published on 2024-06-18 / 671 Visits

解决错误Access denied. The provided password or token is incorrect or your account has 2FA enabled

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

fatal: Authentication failed

这个问题有几种可能

  1. 密码输入错误

  2. 输入对了密码,但是开启了2FA

  3. 使用token登录时,username不能时空,无论如何需要输入一些字符。