I have set my global github user settings in my computer.
- user.name "myusername"
- user.email "myemail"
I have second github account with a different name "myusername2". I cloned a repository from "myusername2" account to my computer. But global user settings are "myusername". So I set the username and email using command:
git config user.name "myusername2"
git config user.email"myemail2"
But when I push commits, the authentication error occured. I think this is for password not authenticated. So how can I solve this problem?