Skip to content

Command line interface for managing and enhancing git commit messages with co-authors.

License

Notifications You must be signed in to change notification settings

hekmekk/git-team

Repository files navigation

Build Status Github Release Downloads

Legacy Code: O++ S++ I+ C>+ E+++ M+ V+ D++ Ar>A

❤️ Donate

git-team

Command line interface for managing and enhancing git commit messages with co-authors.

  1. Installation
  2. Usage
  3. Configuration
  4. A note on git hooks
  5. Similar Projects

Usage

Setup some alias -> co-author assignments for convenience

git team assignments add noujz "Mr. Noujz <noujz@mr.se>"

To review your current assignments use:

git team assignments

Set active co-authors

Apart from one or more aliases, you may provide a properly formatted co-author to the enable command as well. This will activate git team globally, so that you can seemlessly switch between repositories while collaborating. If you prefer per repository activation, you can set the corresponding config option.

git team enable noujz <alias1> ... <aliasN> "Mr. Green <green@mr.se>"

Commit some

Just use git commit or git commit -m <msg>.

Disable git team

git team disable

Configuration

See git team config -h on how to configure git team.

option type values default description
activation-scope string global, repo-local global set to repo-local to use git-team on a per repository basis.

A note on git hooks

git-team uses a prepare-commit-msg hook to inject co-authors into a commit message. This hook is installed into ${HOME}/.git-team/hooks. When you enable git-team, the git config option core.hooksPath will be set to point to that directory. Along with the prepare-commit-msg hook come proxies for all the other git hooks, so that other existing repo-local hooks are still being triggered.

Similar projects