Set token but when cloning git still asks password

Hi all,
Sorry I am new to github.
My question is, I have set up the token on the web Personal access tokens, checked everything and the expiration time is Tue, Dec 14 2021, but git clone still asks me password.

I didn’t have token at the beginning, so it said “remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.”

Then I set the personal token, filled the user.name and user.email at local, but the git still didn’t ask me for token but password instead and popped the same error as before.

The environment and error message. It is after I setup the token…

-Lenovo-Yoga-C740-14IML:~/Github$ git config -l
user.name=Geauga
user.email=
*@gmail.com
credential.helper=cache
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true

***-Lenovo-Yoga-C740-14IML:~/Github$ git clone https://github.com/Geauga/NGS/
Cloning into ‘NGS’…
Username for ‘github’: Geauga
Password for ‘Geauga@github’:
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for ‘https://github.com/Geauga/NGS/

Thank you for reading it and any suggestions would be appreciated.

How did you “set” the token?

In general you’re supposed to use the token instead of your password at that point. :slightly_smiling_face:

yes I checked all the boxes

still asks me password instead of token

VERSION=“20.04.3 LTS (Focal Fossa)”
git version 2.25.1

First of, revoke the token in the screenshot now. This is a public forum, anyone could use it to push to your repositories. :warning:

When Git asks for the password, give it the token (after you’ve generated a new one). That should be all.