select-git-author
A command-line tool to interactively select or add a Git author before committing. Useful when working with multiple identities (e.g., personal, work, open-source).
✨ Features
- Choose an author from a predefined list (
~/.git_authors) - Add and save a new author interactively
- Automatically sets
GIT_AUTHOR_NAMEandGIT_AUTHOR_EMAIL - Optionally sets
GIT_COMMITTER_NAMEandGIT_COMMITTER_EMAIL
📦 Installation
pip install select-git-author
🚀 Usage
commit [GIT_COMMIT_ARGS...]
Options
--author– Specify an author from the list. If not provided, will prompt.--set-commitor / --no-commitor– Also set the Git committer fields (default: true)
Example
commit -m "Update feature"
If no --author is given, you'll see an interactive menu like:
? Select Git author:
❯ Alice Dev <alice@example.com>
Bob QA <bob@example.org>
Add new author
If you choose "Add new author", it will prompt for name and email, and optionally save it.
🧠 Author Configuration
To predefine available authors, create a file at:
~/.git_authors
Format (one per line):
Alice Dev <alice@example.com>
Bob QA <bob@example.org>
📝 License
MIT
Metadata
Release files for select-git-author 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| select_git_author-0.2.3.tar.gz | 3.2 kB | With provenance | Details for select_git_author-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| select_git_author-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for select_git_author-0.2.3-py3-none-any.whl |
Total release size: 7.4 kB
Security for select-git-author 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.