Command line interface for managing and enhancing git commit
messages with co-authors.
git team assignments add noujz "Mr. Noujz <[email protected]>"
To review your current assignments use:
git team assignments
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 <[email protected]>"
Just use git commit
or git commit -m <msg>
.
git team disable
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. |
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.