Skip to main content

Interactively select the author for the next git commit

Project description

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

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

select_git_author-0.2.3.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

select_git_author-0.2.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file select_git_author-0.2.3.tar.gz.

File metadata

  • Download URL: select_git_author-0.2.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for select_git_author-0.2.3.tar.gz
Algorithm Hash digest
SHA256 d0c42ae2252722e7e918040073153090eb78dfbc5de9e27b9cfff2f187eed7e4
MD5 b7221e3d310aea076ee45d2c0d12fa51
BLAKE2b-256 140f2578e99c6b1ddf7879b6123bed2d6a99b019c7288c223395ee9ffcdb5d8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for select_git_author-0.2.3.tar.gz:

Publisher: publish-to-test-pypi.yml on markusgrotz/select-git-author

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file select_git_author-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for select_git_author-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3279fb77f2c30edff940b67e24e8e371c2a6411fdb89d183c09dd23314c4db35
MD5 677186c0c8a1f8b4fcf593e98694030e
BLAKE2b-256 6d437d51e104334870e7e34d01f0af0aa1c56754057f4165c196d89d4a9845f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for select_git_author-0.2.3-py3-none-any.whl:

Publisher: publish-to-test-pypi.yml on markusgrotz/select-git-author

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page