Crates.io | gprofile |
lib.rs | gprofile |
version | 0.2.0 |
source | src |
created_at | 2022-01-08 10:03:55.465589 |
updated_at | 2022-02-24 06:23:22.924814 |
description | Quickly switch and manage multiple git user profiles. |
homepage | https://github.com/pjmp/gprofile |
repository | https://github.com/pjmp/gprofile |
max_upload_size | |
id | 510156 |
size | 815,350 |
Quickly switch and manage multiple git profiles.
There are many similar tools that offer more features and look prettier than this. The main difference between them is this has zero dependencies and my focus is on reducing compile times and binary size.
The resulting binary building in --release
mode is 456K
only (on my machine).
If you have rust toolchain installed, you can just do:
cargo install gprofile
Alternatively, you can download pre-build binaries from the release page to you $PATH.
Note: Resulting binary's name is git-profile
.
# list available profiles
git profile --list
# use `work` profile
git profile --use=work
# delete `work` profile
git profile --delete=work
# edit `personal` profile
git profile --edit=personal
USAGE:
gprofile [FLAGS]
gprofile [OPTIONS] <PROFILE>
FLAGS:
-h, --help Prints help information
-v, --version Prints version information
OPTIONS:
-c, --create Create a new profile
-r, --remove=<PROFILE> Delete a given profile
-e, --edit=<PROFILE> Edit a given profile
-u, --use=<PROFILE> Set the given profile as current user name and email
-l, --list List available profiles
-d --dump-config Dump config path & config to stdout