I have tried multiple options and settled on the extension in the vscode below.
Git Config User Profiles
https://github.com/onlyutkarsh/git-config-user-profiles
In my case, I have three accounts One for a Copiolet subscription, one official code and one personal. With this extension, it is very convenient to stay connected on the copilot and switch between person and work account.
Configuration is also very simple. Just install and start using.