User error occurred after github submission

my computer used to be used by someone else; now I use this computer to submit code to my github; but the github information of previous computer users is displayed on github, as shown below:

clipboard.png
the red box contains the information of previous computer users;
prompts me to enter my account password when submitting the code; I enter my account password; why does this happen? How to solve? Please take a look at it!

May.13,2022

modify the configuration of the project's .git / config file


in the git bash command line tool, type:

git config --global user.name;
git config --global user.email;

check the user name and email address in the native git configuration, and you will find that the user name and email address may not be you.
then you can execute:

git config --global user.name []
git config --global user.email []

set your user name and email address

Menu