S
S
someserj2017-03-16 01:02:11
git
someserj, 2017-03-16 01:02:11

How to switch between GitHub accounts?

Windows 8.1
I have 2 github accounts and 2 projects. From one account I need to push to one project, from another to another.
when I do it from Windows (I use git bash), I write git push, I am asked for a login / password for the first time
c177dd565f9f454e813669434707716d.png
, everything is ok. then I try to push to another project, and it writes Repository not found. I understood why, because Windows Credential Manager remembers the previously entered login / password of the first account, and from it I do not have access to the second project.
question - how do I implement switching between accounts?
maybe you can make git ALWAYS ask for a username / password, and then I will enter the data that is needed to access the desired project?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question