Check what git remote -v returns: the account used to click on the http url is usually injected into the remote url.
https:// Fre123@github.com /...
If so, put a URL that will prompt Git to ask the account to use when clicked:
git remote set-url origin https://github.com/<user>/<repo>
Or use your Fre1234 account:
git remote set-url origin https:// Fre1234@github.com /<user>/<repo>
Also check if you installed Git for Windows with or without a credential assistant like in this question .
OP Fre1234 adds in the comments :
I finally found a solution.
Go to: Control Panel -> User Accounts -> Manage your credentials -> Windows Credentials
There are some credentials associated with Github in the Generic Credentials ,
Click on them and click " Remove ."
This is because the default installation for Git for Windows installs Git-Credential-Manager-for-Windows .
See git config --global credential.helper (it must be manager )
source share