Skip to main content

Quickly set user.name and user.email for a repository, based on a config file

Project description

git-identity

Quickly set user.name and user.email for a repository, based on a config file. Available on pypi.

Installation

Recommended installation is with pipx:

pipx install git-identity

Autocompletion

Autocompletion is done with argcomplete. Install, and add the following to your shell's startup scripts:

eval "$(register-python-argcomplete git-identity)"

Configuration

This project will look for git-identity.json in the XDG config folder (typically $HOME/.config/).

{
    "identities" : {
        "<alias>": {
            "name": "Alex Ample",
            "email": "alexample@example.com"
        }
    }
}

alias is what is used when invoking the command.

Usage

After installation, you may use this as a git subcommand (though argcomplete only works when you invoke it as git-identity)

git identity <alias>

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

git-identity-1.0.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

git_identity-1.0.1-py3-none-any.whl (3.2 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