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.
-
-
first, you need to create a personal access code, that is,
persona access token
first, enter the GitHub main interface:
-
select “meeting”, enter the setting interface:
-
select “developer meetings” in the navigation column on the left, Enter the developer settings page
-
select “personal access tokens” and click “generate new token”:
-
you will see the following interface:
-
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
-
now you can see the generated personal access code. Copy it and save it to a file
-
-
use
personal access token
-
for authentication
-
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
-
then you will find that you can push to the local warehouse