I have the problem that I already have my main github account logged into the terminal. Now I want to use a secondary account that I just created from github but I can't push to the repositories because it pushes with the credentials of my main account. How do I delete my main account credentials?
Find the git credentials and change your username and password
Via console you access the repository and use the following commands:
With this you assign these values only to the repository in which you are located. If what you want is to change the data globally, you must use the option
--global
like this:Now, to change the remote configuration you can do this: First list the remote that you have configured, whose output is something similar to:
Now you can use to remove the user:
Or this one to switch to another user
I hope you find this information useful