According to the post from GitHub, “Beginning August 13, 2021, we will no longer accept account passwords when authenticating Git operations on GitHub.com.”
So I need to use token authentication instead. Here is how. From here.
Go to “github.com -> Settings -> Developer settings -> Personal access tokens”, create a token first. For normal usage, you just need to check the “repo” related scope items when creating the token. Let’s say the token value is “ThIsiStHeToKeNcOnTeNt”.
Go to your local git repo and run the following command:
# Remove the existing tracked repository.
- Now you should be able to do your git operations, without typing the password anymore.