Support for password authentication was removed on August 13, 2021

Support for password authentication was removed on August 13, 2021

When using git upload to push the local warehouse to the remote server, the following problems occur:

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: Inaccessible 'https://github.com/LiuXianghai-coder/Study.git/':The requested URL returned error: 403

Since August 13, 2021, the authentication method of user name + password in GitHub has been removed and can only be authenticated by personal access code.

      1. first, you need to create a personal access code, that is,

    persona access tokenfirst, enter the GitHub main interface:

    1. select “meeting”, enter the setting interface:

    1. select “developer meetings” in the navigation column on the left, Enter the developer settings page

    1. select “personal access tokens” and click “generate new token”:

    1. you will see the following interface:

    1.   enter “note” and select “expiration”. You can define the effective time by yourself. If there are no special requirements, check all the check boxes below, and then go to the bottom of the page and click “generate token” to generate the corresponding personal access code

    1. now you can see the generated personal access code. Copy it and save it to a file

      1. use

    personal access token

    1. for authentication

 

    1.   execute the push command again. At this time, you will be prompted to enter the user name. Just enter it normally; After entering the user name, you will be prompted to enter the password. Here, you need to enter the personal access token generated before. You can copy it directly

 

    1.   then you will find that you can push to the local warehouse

 

Read More: