gitext
v1.0.12
Published
gitext
Downloads
73
Readme
gitext
gitext's use
(git use
)
Control Git config, SSH keys, and commit signing keys for multiple Git profiles.
https://github.com/user-attachments/assets/9fc20bea-6a79-426e-8858-085109a729f5
How to use use
You may run it using pipx
, but usually you want to set it as a git
alias
...
[alias]
use = npx [email protected] use
...
You then run it with git use
# Create a new profile, including a new SSH key
> git use [email protected] 'Jimmy Lin'
Created profile Jimmy Lin <[email protected]>
# Create another profile
> git use [email protected] 'Jimmy'
Created profile Jimmy <[email protected]>
# Use it
> git use [email protected]
Jimmy Lin <[email protected]>
# Fuzzy matching is supported (only when purely activating a profile, not deleting or updating)
> git use cont
Jimmy <[email protected]>
# List all profiles
> git use
* Jimmy <[email protected]>
Created profile Jimmy Lin <[email protected]>
# Delete a profile
> git use [email protected] -d
Deleted profile Jimmy Lin <[email protected]>
# Update profile name (`git`'s `user.name`)
> git use [email protected] 'JL' -u
Updated profile as JL <[email protected]>
Known issues
-u
,-d
can only be placed at the end of the command