Using different git accounts in your computer

Posted by itungnt on Wednesday, June 8, 2016

I am using 2 different GitHub accounts on my computer. I checked out using my account A first and Windows asked my for storing the credential and I accepted. But when I try to push to my account B repository, git always use my account A to push and error return

Option 1: Try to check out B’s repo again with B account in the url then try to push

Option 2: if option 1 still return 403 then try to remove the stored credential:

After successfully pushed to account B’s repo. If you want to reuse the stored credential, then run:


comments powered by Disqus