我是 Git 的新手(2 天前刚开始)。我正在尝试创建一个项目来练习我从这里学到的基本命令。
到目前为止,我在哪里:
README.md在项目中添加了一个。develop。[成功]在我的本地文件夹中C:\gitprojects,设置 globaluser.name并user.email使用以下命令:
git config --global user.name <my user name>git config --global user.email <my-email>[成功]C:\gitprojects使用命令将项目克隆到我的本地文件夹中git clone https://flamedenise19@gitlab.com/flamedenise19/speedtyping.git
git checkout -b "develop"。test.txt在本地根文件夹手动添加一个新文件用于测试推送。git commit -m "adds test.txt"git push origin develop现在,我被困在这个push部分。输入后git push origin develop,会弹出一个新窗口,询问我的凭据(请参见下面的屏幕截图):
所以我确实输入了我的凭据(与登录 gitlab.com 时使用的用户名和密码完全相同),但在那之后,我收到了这个错误(另见下面的截图):
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/flamedenise19/speedtyping.git/'
Run Code Online (Sandbox Code Playgroud)
问题:
请帮忙。
NOTE: I have seen THIS ONE, and the answers are mentioning Tortoise. Is it always required to use tortoise in order to use Git?
SOME BACKGROUND INFO:
Two-Factor Authentication is disabled for my account (see screenshot below):
这些是我的想法:
Git Credential Manager for Windows当您解决了推送问题后,您还可以在私有或内部的情况下克隆它。
| 归档时间: |
|
| 查看次数: |
9416 次 |
| 最近记录: |