Git User Profiles
This document will guide you on setting up your git user profiles using the Git Config User Profiles extension in VSCode. This is especially helpful for people who share a development device.
Installing the Extension
- Navigate to the
Extensions
tab. - Search for
Git Config User Profiles
and install it.
Creating a Git Config User Profile
- Open the command palette with
Shift + Command + P
. - Search and execute
git config user profiles: create a git config user profile
. - You will then be prompted to enter your profile name, account name, and an email address to create your profile.
Selecting a Git Config User Profile
- Open the command palette again.
- Search and execute
Git Config User Profiles: Select a git config user profile
. - A confirmation pop-up will appear in the bottom right corner. If there are no issues, proceed with the selection.
Note: This operation will update the account information documented in the open project to the selected profile.
Resolving Account Information Discrepancies
If there are discrepancies between the account information in the selected profile and the open file, a warning will be displayed in yellow on the blue bar at the bottom of the screen. To resolve this:
- Click on the warning or,
- Repeat step [3] of the
Selecting a Git Config User Profile
section above to select the correct profile.