If you've ever managed multiple GitHub accounts on the same machine — a personal account, a work account, maybe a freelance client account — you know the pain.
You clone a repo, push some code, and then realize it went up under the wrong username. Or worse, you spend 20 minutes debugging why your SSH key isn't working, only to find out you're using the wrong identity file.
I got tired of it. So I built DevSwitch .
👉 Repo: https://github.com/umesh-saini/DevSwitch
The Problem With Multiple Git Accounts
Managing multiple Git identities manually looks something like this:
# ~/.ssh/config Host github.com-work HostName github.com User git IdentityFile ~/.ssh/id_ed25519_work
Host github.com-personal HostName github.com User git IdentityFile ~/.ssh/id_ed25519_personal
Enter fullscreen mode
Exit fullscreen mode
Then every time you clone a repo, you have to remember to use the right host alias:
git clone [email protected]:mycompany/project.git
Enter fullscreen mode
Exit fullscreen mode
And then…