Quick Start¶
1. Add your profiles¶
git-profile add --id work --name "Jane Dev" --email jane@company.com
git-profile add --id personal --name "Jane Doe" --email jane@example.com \
--ssh-key ~/.ssh/id_ed25519_personal
2. Apply a profile¶
Apply a profile to the current repository:
Or apply one globally (sets ~/.gitconfig):
3. Check the active identity¶
Current git identity
user.name Jane Dev
user.email jane@company.com
ssh-key (default)
Matched profile: work
4. List all profiles¶
PROFILE USER EMAIL SSH KEY
──────────────────────────────────────────────────────────
personal Jane Doe jane@example.com ~/.ssh/id_ed25519_personal
● work Jane Dev jane@company.com (default)
The ● marker shows the profile that matches the current git identity.
5. Auto-apply with git hooks (optional)¶
Never forget to switch profiles again:
Now every git commit and git push in that repo automatically uses the work profile.
See the Auto-Apply Hooks guide for full details.
Next steps¶
- Full command reference — all flags for every command
- GPG commit signing — sign commits per identity
- Configuration — config file format and location