sách gpt4 ăn đã đi

Git 推送不工作错误 "You must use a personal access token or SSH key"

In lại 作者:太空狗 更新时间:2023-10-29 14:41:57 28 4
mua khóa gpt4 giày nike

Git 抛出错误

"C:\Program Files (x86)\Git\bin\git.exe" push -u --recurse-submodules=check - 
-progress "origin" refs/heads/dev_civaplugin:refs/heads/dev_civaplugin
remote: Password authentication is not available for Git operations.
remote: You must use a personal access token or SSH key.
remote: See https://github.build.ge.com/settings/tokens or
https://github.build.ge.com/settings/ssh
fatal: unable to access
'https://github.build.ge.com/108012572/NextGenUT.git/': The requested URL
returned error: 403
Xong

Press Enter or Esc to close console...

我使用 git 扩展成功地克隆了远程存储库并且也能够创建新分支但是当尝试推送我的更改时它抛出上述错误。

我使用工具创建了公钥和私钥> putty> 生成或导入 key 我的电脑在用户中没有 > .SSH 文件夹在 git hub 中,我还使用设置 > 开发人员设置 > 个人访问 token 创建了个人访问 token 不清楚问题是什么,任何输入都是很大的帮助

câu trả lời hay nhất

直接转到第 6 步 [如果您使用单点登录,请从第 1 步开始]

  1. 在您的本地机器上生成一个 SSH key (在创建 key 时输入密码)
ssh-keygen -t rsa
  1. 复制以ssh-rsa开头的公钥
  2. 转到 Github > 设置 > SSH 和 GPG key
  3. nhấp chuột New SSH key 并粘贴您之前复制的私有(private) key ,然后创建它

nhập mô tả hình ảnh ở đây

  1. 现在,启用 SSO 并授权您的组织

nhập mô tả hình ảnh ở đây

  1. 确保新创建的ssh私钥加入到SSH认证代理中
ssh-add 
(e.g., ssh-add id_rsa)

Để ý:默认情况下,它只有您的 id_rsa 主键;因此,您需要在其中添加您的自定义私钥。

关于Git 推送不工作错误 "You must use a personal access token or SSH key",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51634406/

28 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress