Skip to main content
Latest Version License
git-author, a git command for managing multiple authors.

Home Page

Project home page is https://github.com/cfelder/git-author

Usage

Configure multiple users, e.g.:

git config --global gitauthor.guest.name "Guest User"
git config --global gitauthor.guest.email "guest.user@example.com"

git config --global gitauthor.john.name "John Doe"
git config --global gitauthor.john.email "john.doe@example.com"

Since version 1.1.0 the committer can be set to match the author using:

git config --global gitauthor.committerisauthor true

Get a list of configured users:

$ git-author

The following authors have been configured:

           guest:  Guest User <guest.user@example.com>
            john:  John Doe <john.doe@example.com>

         default:  Christian Felder <webmaster@bsm-felder.de>

Select specific user:

git-author john

Finally commit your changes as usual in this session using:

git commit

License

The git-author library is open source software released under the LGPL-3.0+ license (http://www.gnu.org/licenses/lgpl-3.0.html).

PEP8 Compliance

git-author is PEP8 compliant.

Download

Package download is available at https://pypi.python.org/pypi/git-author.

Install

git-author can be installed from the Python Package Index using pip or pip3.

$ pip3 install git-author

As git-author needs to change environment variables in your shell, it is necessary to source the git-author script. Please add an alias pointing to the git-author script to your environment, e.g.:

alias git-author='source /usr/local/bin/git-author'

Git repository

You can download the latest source at https://github.com/cfelder/git-author

Release files for git-author 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for git-author 1.1.0
File Size Uploaded
git-author-1.1.0.tar.gz 10.6 kB Details

Release files / git-author-1.1.0.tar.gz

Download URL git-author-1.1.0.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b3cbe2dc08e813bab03d8553bf83b9a6a0ce324971fcbedec33e3183f1b7b4bb
BLAKE2b-256 checksum
How to use checksums
c0710d3a861264755aa72dbc795dddaa70ff45045aea469deadd2d2556b4a99b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.2

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file

1.0.0

1 release file

0.1.0

1 release file

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