Navigation

    GitHub中文社区
    • GitHub排行榜

    论坛

    • Login
    • Categories
    • Recent
    • Tags
    • Popular

    今天(8月13日)开始github库在vscode中提交失败了,咋办?

    Github & Git
    2
    3
    238
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • haohuancheng
      haohuancheng last edited by

      vscode提交代码到远程 github 库,一直顺利。今天提示不行了,说安全升级了。大家有没有遇到的,简单解决办法是什么?谢谢!

      1 Reply Last reply Reply Quote 0
      • k1995
        k1995 last edited by

        remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
        remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
        fatal: unable to access '*****': The requested URL returned error: 403

        你之前使用HTTPS方式clone的吧,改用SSH方式吧。

        1 Reply Last reply Reply Quote 0
        • k1995
          k1995 last edited by

          GitHub官方博客说了 8月13日,GitHub 禁止 HTTPS 方式通过账号密码 push 代码了。
          你要去个人设置页面,创建一个 personal access token,push 的时候把之前输入的密码换成 token。

          $ git clone https://github.com/username/repo.git
          Username: your_username
          Password: your_token (换成token)
          

          或者建议直接使用 SSH,更安全方便。

          1 Reply Last reply Reply Quote 0
          • First post
            Last post