As other answers mention this will work for any operative system
rm -rf ~/.git-credentials
Once that is done, any other command related to git remote (pull, push, fetch, etc...) will ask for credentials again and will work as usual.
As other answers mention this will work for any operative system
rm -rf ~/.git-credentials
Once that is done, any other command related to git remote (pull, push, fetch, etc...) will ask for credentials again and will work as usual.