Github push推东西的时候突然报错了,一查发现是换了认证方式的原因,之前输入密码push,现在得改用token了,但是网上重置仓库密码啥的试了push都还是失败。

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

remote: Please see for more information.

fatal: unable to access '': The requested URL returned error: 403


Git password authentication is shutting down

As previously announced, starting on August 13, 2021, at 09:00 PST, we will no longer accept account passwords when authenticating Git operations on Instead, token-based authentication (for example, personal access, OAuth, SSH Key, or GitHub App installation token) will be required for all authenticated Git operations.

Please refer to this blog post for instructions on what you need to do to continue using git operations securely.


  • August 13, 2021, at 09:00 PST


  1. 创建个人访问token,Creating a personal access token

  2. 更改认证方式,Caching your GitHub credentials in Git,以我用的MacOS为例

  1. ⑴.Install Git using Homebrew:

    $ brew install git
  2. ⑵.Install GCM Core using Homebrew:

    $ brew tap microsoft/git
    $ brew install --cask git-credential-manager-core

    For MacOS, you don't need to run git config because GCM Core automatically configures Git for you.



anzhihe安志合个人博客,版权所有丨 如未注明,均为原创 丨转载请注明转自: | ☆★★每天进步一点点,加油!★★☆



电子邮件地址不会被公开。 必填项已用*标注