
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
- Add tap
brew tap hekmekk/git-team
- Install git-team
Install stable release. Use --HEAD in case you want to install from the latest commit.
brew install git-team
- Add apt-sourc.es GPG Key
curl https://apt-sourc.es/admin/gpg.asc | sudo apt-key add -
- 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
- Update the
apt package index and install git-team
sudo apt update && sudo apt install git-team
ansible-playbook git-team.yml --ask-become-pass
Download a Release
-
Download the latest release
-
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