Skip to main content

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_NAME and GIT_AUTHOR_EMAIL
  • Optionally sets GIT_COMMITTER_NAME and GIT_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

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)

Source distribution for select-git-author 0.2.3
File Size Uploaded
select_git_author-0.2.3.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for select-git-author 0.2.3
File Interpreter ABI Platform
select_git_author-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / select_git_author-0.2.3.tar.gz

Download URL select_git_author-0.2.3.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d0c42ae2252722e7e918040073153090eb78dfbc5de9e27b9cfff2f187eed7e4
BLAKE2b-256 checksum
How to use checksums
140f2578e99c6b1ddf7879b6123bed2d6a99b019c7288c223395ee9ffcdb5d8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / select_git_author-0.2.3-py3-none-any.whl

Download URL select_git_author-0.2.3-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3279fb77f2c30edff940b67e24e8e371c2a6411fdb89d183c09dd23314c4db35
BLAKE2b-256 checksum
How to use checksums
6d437d51e104334870e7e34d01f0af0aa1c56754057f4165c196d89d4a9845f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page