This question has already been answered:
- How to change or delete a user in git bash 3 responses
Half a year ago, I installed myself on a home PC with windows 7 git. I registered an account with a couple of repositories, but in general I almost did not use it. During the first setup I specified the username and email.
git config --global user.name1
git config --global user.email1
After a while, I registered a new account from another computer, and when git was first run, I already registered name2 and user.email2 in the console. Now the situation has arisen that user.name2 is on the working PC in Git, and a 403 error occurs on the home user.name1 because of this, when trying to upload the repository, the login and password does not ask for an error. Question: how to log out or remove your old user.name1 altogether and go to git under a new account?
I enter git remote -v I get fatal: Not a git repository (or any of the parent directories): .git
git remote -v- Mikhail Vaysmangit remote -vshould be run in a directory with a git repository. - jfs