git-team

module
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: MIT

README

Build Status

git-team

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

Usage

Setup some aliases for convenience
git team add noujz "Mr. Noujz <noujz@mr.se>"

To review your current alias to co-author assignments use:

git team ls
Set active co-authors

Apart from one or more aliases, you may provide a properly formatted co-author aswell.

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

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 /usr/local/etc/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.

Installation

via Homebrew
  1. Add tap
brew tap hekmekk/git-team
  1. Install git-team

Install stable release. Use --HEAD in case you want to install from the latest commit.

brew install git-team
via apt-sourc.es
  1. Add apt-sourc.es GPG Key
curl https://apt-sourc.es/admin/gpg.asc | sudo apt-key add -
  1. Setup the apt repository
echo "deb [arch=amd64] https://apt-sourc.es/deb/hekmekk/git-team stable main" | sudo tee /etc/apt/sources.list.d/git-team.list
  1. Update the apt package index and install git-team
sudo apt update && sudo apt install git-team
via an ansible playbook
ansible-playbook git-team.yml --ask-become-pass
Download a Release
  1. Download the latest release

  2. Install it manually

sudo dpkg -i /path/to/downloaded/release.deb
Build from Source

The latest version of git-team has been built against go version 1.12.

make
sudo make install

Similar projects

TODOs

  • fix: if core.hooksPath is set already, symlink git-team prepare-commit-msg there (fail if it exists already)
  • internal quality: refactor Dockerfiles and Makefile for a better development experience
  • internal quality: get rid of command-specific functionality in gitconfig module

Jump to

Keyboard shortcuts

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