谁能帮我解决这个问题? “2021 年 8 月 13 日取消了对密码身份验证的支持。请改用个人访问令牌。远程:请参阅https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations /有关更多信息。致命:无法访问“https://github.com/codingTheWorld777/react-mini-projects.git/”:请求的 URL 返回错误:403” 我无法使用我的令牌访问 github 所以我可以推送一些代码到github。 在此处输入图片说明
Ahm*_*mam 37
Github 宣布他们打算要求对所有经过身份验证的 Git 操作使用基于令牌的身份验证。在 GitHub.com 上对 Git 操作进行身份验证时,他们将不再接受帐户密码:
生成令牌:
在 Mac 上:
在 Windows 上:
转到控制面板 => 用户帐户 => 凭据管理器
编辑github的通用凭证
粘贴令牌而不是密码
小智 19
我今天也遇到了这个问题,在MacOS 上。
我通过以下方式解决了这个问题:
首先,获得令牌!遵循 Github 的指导。我认为您只需单击警告中提供的链接即可。
二、更改MacOS上的钥匙串:
然后,我的问题解决了,我现在可以“git push”了。
小智 15
您需要使用以下命令更改远程 url:
git remote set-url <stream> https://<token>@github.com/<username>/<repo>
Run Code Online (Sandbox Code Playgroud)
token可以在这里找到
Niy*_*yaz 10
第 1 步:转到 Github 帐户 -> 设置 -> 开发者设置 -> 个人访问令牌 -> 生成/重新生成您的令牌
第 2 步:转到https://cli.github.com并下载 Github CLI
第 3 步:转到您的命令行或终端 -> gh auth login并使用登录凭据进行操作,完成。
我有同样的问题,对我来说,解决方案是在https://cli.github.com/ 中安装 GitHub CLI 。在我的操作系统中安装后,我$ gh auth login在我的终端上运行并使用我在 GitHub 配置文件中生成的访问令牌通过浏览器登录,请遵循:
我的账户 >> 设置 >> 开发者设置 >> 个人访问令牌 [生成新令牌]
我希望能帮助你
Esive com o mesmo problema,para mim a solução foi instalar o GitHub CLI em https://cli.github.com/。Após a instalação em meu sistema opacional, executei $ gh auth loginno meu terminal e fiz o login através do navegador com o token de acesso que eu gerei no perfil GitHub, siga:
Minha conta >> Configurações >> Configurações do desenvolvedor >> tokens de acesso pessoal [GERAR NOVO TOKEN]
埃斯佩罗特阿朱达尔
小智 5
首先,您需要在创建个人访问令牌中创建个人访问令牌
git clone https://github.com/username/repo.git
Username: your_username
Password: your_token
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
17446 次 |
| 最近记录: |