git-team

command module
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2021 License: MIT Imports: 16 Imported by: 0

README

Build Status

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL