The permissions have not changed after git switched accounts.

I am an An account, because I do not have permission, I borrowed the B account and pulled the code (when I created a new SSH key,git clone, the command line is prompted to enter the B account and password).
then the problem arises. I want to switch back to the An account, but it has always been the permission of B. Now that I have deleted all the SSH of the AB account and the local id_rsa, I still have the permission of the B account.

ask for help

Mar.23,2021

you can execute

first.
$ git config -l

see if user.name and user.email belong to An account or B account.

if it is a B account, execute:

$ git config --global user.name "account_a"
$ git config --global user.email account_a@example.com

set it up.

Menu