Skip to main content

Command-line tool for managing multiple git identities on the same machine

Project description

GitID

Command-line tool for managing multiple git identities on the same machine. This is particularly useful for shared machines where multiple people develop in the same workspaces, which is in some cases unavoidable.

With GitID, users can store their git identities and quickly load them in their shell, so their commits are marked with their name and email.

Note that GitID only sets commit authors and committers, and does not affect authorization.

Installation

Installation is easy:

pip install gitid
gitid init bash # substitute with your shell of choice

Unsupported shell

If your shell is unsupported by gitid init, simply add alias gitid="source gitid" to the appropriate startup file of your shell.

Workflow

To add a new identity:

gitid add idname username email

The added identity can now be activated:

gitid set idname
... git commands ...
git commit # This commit is marked with "username <email>" as the committer and author

All identities can be viewed:

gitid list

Which outputs: (* marks the active identity)

Stored identities:
    (*) idname: username <email>

Identities can also be removed:

gitid remove idname # removes the identity named 'idname'
gitid clear # removes all stored identities

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

gitid-0.1.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

gitid-0.1.1-py3-none-any.whl (4.8 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