{"id":26993319,"url":"https://github.com/onlyutkarsh/git-config-user-profiles","last_synced_at":"2025-07-13T13:41:04.342Z","repository":{"id":37983834,"uuid":"217757478","full_name":"onlyutkarsh/git-config-user-profiles","owner":"onlyutkarsh","description":"A Visual Studio Code extension to define multiple git config user profiles and switch them easily using status bar","archived":false,"fork":false,"pushed_at":"2024-07-18T10:37:09.000Z","size":1898,"stargazers_count":18,"open_issues_count":17,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T23:17:56.630Z","etag":null,"topics":["config","git","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=onlyutkarsh.git-config-user-profiles","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onlyutkarsh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"custom":"https://paypal.me/onlyutkarsh"}},"created_at":"2019-10-26T19:14:05.000Z","updated_at":"2025-02-12T02:12:20.000Z","dependencies_parsed_at":"2024-02-15T16:38:05.380Z","dependency_job_id":null,"html_url":"https://github.com/onlyutkarsh/git-config-user-profiles","commit_stats":null,"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/onlyutkarsh/git-config-user-profiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyutkarsh%2Fgit-config-user-profiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyutkarsh%2Fgit-config-user-profiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyutkarsh%2Fgit-config-user-profiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyutkarsh%2Fgit-config-user-profiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onlyutkarsh","download_url":"https://codeload.github.com/onlyutkarsh/git-config-user-profiles/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyutkarsh%2Fgit-config-user-profiles/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265151840,"owners_count":23719123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["config","git","vscode","vscode-extension"],"created_at":"2025-04-03T23:18:05.400Z","updated_at":"2025-07-13T13:41:04.316Z","avatar_url":"https://github.com/onlyutkarsh.png","language":"TypeScript","funding_links":["https://paypal.me/onlyutkarsh"],"categories":[],"sub_categories":[],"readme":"# Git Config User Profiles\n\nEver 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 `git config` command, this extension allows you to maintain different username and email in named profiles and allows you to easily switch and apply to the repository you are working.\n\n\u003e Latest Changes\n\u003e \n\u003e - ✅ If the repository's git config matches a defined profile, extension now selects it automatically. Don't like this behaviour and prefer the old way? You can disable it in settings.\n\u003e   ![auto select](images/marketplace/auto-select-profile-setting.png)\n\u003e - ✅ Store `signingkey` in the profile.\n\u003e - ✅ Delete Profile - Type 'git config profiles' in command palette and select 'Delete a profile'.\n\n![demo](images/marketplace/demo.gif)\n\n## Usage\n\n### Creating the profiles\n---\nOnce you install extension, click on 'Git Config Profiles' on the VSCode Status Bar and define few profiles. \n\n![status bar](images/marketplace/statusbar.png)\n\n\u003e Profiles defined are stored in global settings file in VSCode so that they are available for all other repositories.\n\n\u003cbr/\u003e\n\n### Selecting the profile\n---\n\nClick on the status bar and if you have profiles you will presented with a dialog as below.\n\n![status bar picker](images/marketplace/statusbar-picker.png)\n\nClick `Pick a profile` and then select a profile you need.\n\n![picker](images/marketplace/profile-picker.png)\n\n\u003cbr/\u003e\n\n### Setting the profile selected to the repo\n---\n\n#### Auto selection of profile\n\nWhen 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.\n\n![auto select](images/marketplace/auto-select-profile-setting.png)\n\n#### Manual selection of profile\n\nIf 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).\n\nOnce you select a profile, the status bar text changes to selected profile name [1 in image below]. \n\n\u003e The icon might display a \"warning\" sign if the current repo is not using the username and email selected.\n\nIf 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 `Work` ) and then select `Yes, apply` in the dialog [2 image below].\n\n![profile not in sync](images/marketplace/repo-not-in-sync.png)\n\nOnce 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.\n\n![repo in sync](images/marketplace/repo-in-sync.png)\n\n### Deleting a profile\nOpen the Command Palette and type `git config user profiles` or `gcup` and select `Delete a profile`. You will be presented with a list of profiles to delete.\n\n### Issues and feature requests\n\nIf you find any bug or have any suggestion/feature request, please submit the [issue](https://github.com/onlyutkarsh/git-config-user-profiles/issues) in the GitHub repo. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonlyutkarsh%2Fgit-config-user-profiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonlyutkarsh%2Fgit-config-user-profiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonlyutkarsh%2Fgit-config-user-profiles/lists"}