Reset Git credentials from the Linux terminal

Asked

Viewed 117 times

-2

I previously used another Git user on my personal computer. I edited the config user with the new user name and email, but when I press git push it occurs to me:

remote: permissão para nomedeusuárionovo / repo.git negada para nomedeusuárioantigo.
fatal: não foi possível acessar ' https://github.com/nomedeusuárionovo/repo.git/ ':
o URL solicitado retornou o erro: 403

When the same error occurred to me using Windows, however to resolve it was enough edit User Credentials in Control Panel, but the solution does not apply to Linux.

Operating system used to reproduce the error: Linux Mint 19.3 - Cinnamon

1 answer

0


I managed to solve the problem by going to "Passwords and Keys", finding the option "vscode-github.login/Account", by right-clicking and excluding it.

The next time I pushed, github reset authentication.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.