Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

gittool-0.1.10-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page