1.0.5 • Published 4 years ago

gitprefix v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Gitprefix

Gitprefix is a Git prepare-commit-msg hook for formatting Git commit messages.

Features

  • Automatic task branch prefix (task/, epic/)
  • Emoji prefixing for certain words:
    • fix: 🔧
    • wip: 🚧
    • bug: 🐛
    • refactor: 🔨
    • revert: ⏪
    • pr: 👌
    • initial commit: 🎉
    • responsive: 📱
    • accessibility: ♿️

Usage

Prerequisites

You need to have a git template directory set up. You can do this by creating an empty directory and adding this config to your ~/.gitconfig:

[init]
    templatedir = ~/path/to/your/git-template

Installation

This package is used as an installer for the formatter. To install you can run the following command:

npx gitprefix install

For new git repositories, the hook files wil be added automatically, however for existing projects you can run the following commands to reinitialise:

npx gitprefix init

Updating

If the package is ever updated you can run the following command to pull down the new formatter and overwrite the existing file:

npx gitprefix install --overwrite
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago