使用git和github登录时出错

问题描述 投票:1回答:1

我正在尝试将一个项目HTML5从终端linux / ubuntu上传给github,它给出了什么?并且用户和密码是正确的我使用该用户和密码登录,任何人都知道,但我有这个错误?我糊涂了。

消息错误:

git push -u origin master
Username for 'https://github.com': gilbertoquinteroA
Password for 'https://[email protected]': 
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/gilbertoquinteroA/Theme-Basico-without-HTML5-and-CSS3.git/'
git github
1个回答
0
投票

首先,检查您的密码是否具有特殊字符,因为您可能需要percent encode it

其次,检查您的帐户是否has 2FA activated:您需要使用PTA (Personal Token Access)作为密码。

© www.soinside.com 2019 - 2024. All rights reserved.