删除了对密码身份验证的支持

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

我想像往常一样把我的项目放在GitHub上,但是最近我一直收到下面的错误。

我创建了我的项目并转到了我移动到我的项目所在目录的目录。

那么,

git init

收到

Initialized existing Git repository in /home/sony/two_dices/.git/

那么,

git add -A

那么,

git commit -m "two dices project is added."

收到

On branch master

nothing to commit, working tree clean

那么,

git log

收到

commit 4373f9b5c374f98d565c7deae9f8afdbaa8ff344 (HEAD -> master)

Author: me <[email protected]>

Date:   Wed May 17 14:59:09 2023 +0330

two dices project added.

然后,我去了我的 GitHub 配置文件并创建了一个存储库。然后,我粘贴了下面的 3 行:

git remote add origin https://github.com/username/Two-Dices.git

git branch -M master

git push -u origin master

复制粘贴我的GitHub用户名和密码,却收到如下错误:

remote: Support for password authentication was removed on August 13, 2021.

remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.

fatal: Authentication failed for 'https://github.com/dorrinsam/Two-Dices.git/'

有人能帮帮我吗?

git authentication github fatal-error
© www.soinside.com 2019 - 2024. All rights reserved.