| Crates.io | git-persona |
| lib.rs | git-persona |
| version | 0.1.0 |
| created_at | 2025-06-14 18:44:38.84676+00 |
| updated_at | 2025-06-14 18:44:38.84676+00 |
| description | A CLI tool to manage and switch between Git user profiles |
| homepage | |
| repository | https://github.com/EricLBuehler/git-persona |
| max_upload_size | |
| id | 1712577 |
| size | 24,793 |
git-persona is a command-line tool to manage and switch between multiple Git user profiles easily.
This tool is useful if you need to maintain multiple Git identities (e.g. work and personal) and want to quickly switch your global user.name and user.email settings.
Install from crates.io:
cargo install git-persona
Or build and run from the repo:
cargo install --path .
./target/release/git-persona --help
git-persona add <name> --user <user.name> --email <user.email>
# Example:
git-persona add work --user "Work Name" --email work@example.com
git-persona list
git-persona switch <name>
# Example:
git-persona switch work
git-persona current
git-persona remove <name>
Profiles are stored in a config file at:
~/.config/git-persona/config.tomlNo information is ever sent anywhere; the config is local only.
MIT © 2025 Eric Buehler