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
Built Distribution
File details
Details for the file gitid-0.1.1.tar.gz
.
File metadata
- Download URL: gitid-0.1.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75a142fe3b32838e8e40b6c9c239180540d6b29f96d6f41d16541bc53e387ab2 |
|
MD5 | 4e167e3599cd7e785183d99fd6e5d38c |
|
BLAKE2b-256 | c4719884832cbb6dbc650244d580f65c9c4137ebe87fb26e5c7b1ee86ed2fac8 |
Provenance
File details
Details for the file gitid-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: gitid-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1764e731c82d6fe8f969072bfbb010d4828b78f78095714dea849869c6872240 |
|
MD5 | cd2e92bacc0db577cbc2da5d727b0a11 |
|
BLAKE2b-256 | 8cef3c7acd7800063adc3dd8868b38a35dabb77d69bd4dc7fd709d45587bb277 |