具体错误:

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.

1.删除全局配置信息

git config –global –unset <配置项>

如果以上语句无法执行成功,则执行语句“git config -global -e"

将全局配置信息删除;

2.git push 

此时push就会需要输入username 和password;但是存在以下问题:

3.执行以下命令:

git init
git remote add origin https://gitlab.com/sobopla/Geronimod.git
git add .
git commit -m "Initial commit"

此时执行git push 即可成功

Logo

一站式 AI 云服务平台

更多推荐