gittool
Project description
Gittool
Control Git config, SSH keys, and commit signing keys for multiple Git profiles.
How to use
You may run it using pipx
, but usually you want to set it as a git
alias
...
[alias]
use = "!pipx run --spec gittool==0.1.10 gittool-use"
...
You run it with pipx
# Create a new profile, including a new SSH key
> git use b00502013@gmail.com 'Jimmy Lin'
Created profile Jimmy Lin <b005020132@gmail.com>
# Create another profile
> git use contact@jimmylin.org 'Jimmy'
Created profile Jimmy <contact@jimmylin.org>
# Use it
> git use b00502013@gmail.com
Jimmy Lin <b005020132@gmail.com>
# Fuzzy matching is supported (only when purely activating a profile, not deleting or updating)
> git use cont
Jimmy <contact@jimmylin.org>
# List all profiles
> git use
* Jimmy <contact@jimmylin.org>
Created profile Jimmy Lin <b005020132@gmail.com>
# Delete a profile
> git use -d b00502013@gmail.com
Deleted profile Jimmy Lin <b005020132@gmail.com>
# Update profile name (`git`'s `user.name`)
> git use -u b00502013@gmail.com 'JL'
Updated profile as JL <b00502013@gmail.com>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gittool-0.1.10.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file gittool-0.1.10.tar.gz
.
File metadata
- Download URL: gittool-0.1.10.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.16.1 CPython/3.12.4 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a30423edfec3f8567dcca07ad2bbb68da0095b806b4b051142a4251b22e703b |
|
MD5 | 21243f9510fa8f0af6c335c5a3f7ab10 |
|
BLAKE2b-256 | 49c3cc45138d2e7f42c9263206e687d2cf07d20d54aa6d84251cb68ba589d774 |
File details
Details for the file gittool-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: gittool-0.1.10-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.16.1 CPython/3.12.4 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40dab01422ab4826aa1bd80bb5569ff2386020420400511f6cdd89b560fc931d |
|
MD5 | 07089343efdebc31b2f3a0a3d5f5cd9e |
|
BLAKE2b-256 | af3ddb2fe562e6bff20418015183e21bec0de76a9a72645933405b295b3f8edb |