Git Config User ProfilesEver wanted to use different username and email addresses for your commits at work and for your personal repositories? While it is easy to do using
UsageCreating the profilesOnce you install extension, click on 'Git Config Profiles' on the VSCode Status Bar and define few profiles.
Selecting the profileClick on the status bar and if you have profiles you will presented with a dialog as below. Click Setting the profile selected to the repoAuto selection of profileWhen the extension loads up, it looks up the local git config and tries to match it with the profiles defined. If it finds a match, it selects the profile automatically (new behaviour). This behavior can be disabled in settings. Manual selection of profileIf auto selection of profile is disabled, the status bar will show a warning if the repository's username and email do not match any of the profiles, and you can select a profile manually (old behaviour). Once you select a profile, the status bar text changes to selected profile name [1 in image below].
If you want to apply the username and email defined in the selected profile to the current repository, click on profile name in the status bar (e.g Once the repository's username and email are in sync, you will see warning color go away confirming that repository config is in sync with the profile selected. Deleting a profileOpen the Command Palette and type Issues and feature requestsIf you find any bug or have any suggestion/feature request, please submit the issue in the GitHub repo. |