Skip to content
person encoding in laptop

multiple git accounts one vscode

February 7, 2024 Editors

I stumbled on this problem early last year, I have a few different git accounts for different projects (eg one for work, one personal, one for this blog etc) Usually this is fine, as I tend to have a different machine for each. However, I was transferring repos between owners, and performing a number of updating tasks and needed a way to associate git accounts with their projects and it was becoming time consuming.

I stumbled on this plugin: https://marketplace.visualstudio.com/items?itemName=shyykoserhiy.git-autoconfig
it essentially allows you to associate a git profile with a project when it first opens. its seamless in the background and makes working with multiple git accounts and multiple projects inside vscode very easy.

You must be <a href="https://jonathansblog.co.uk/wp-login.php?redirect_to=https%3A%2F%2Fjonathansblog.co.uk%2Fmultiple-git-accounts-one-vscode">logged in</a> to post a comment.