Using multiple git accounts in VsCode
I want to use different git account for my two projects in same device. Is it possible to do so . Without deleting git config again and again.
Sorry if that's too dumb question
4 Replies
Heyah - I use a
~/.gitconfig
with content:
and then ~/.IDENTITY-A.gitconfig
looks something like this, which also allows me to use different ssh identities (mainly one for personal use and the other for work
Please let me know if you have more questions 🙂Hi. Thanks a alot for answering
I found this today on stackoverflow. It's very detailed and allows to use different account across different projects
Stack Overflow
I have 2 GitHub accounts. How can I use both when I am working in V...
I have 2 different GitHub accounts: A personal account for my own needs, and a company GitHub account that I manage. I use V.S. Code for both company & personal projects, and I was hoping to fi...
glad that helped 🙂