/gitmoji_hook

Git hook with https://gitmoji.dev/

Primary LanguageShellMIT LicenseMIT

gitmoji_hook

Gitmoji

Git hook with Gitmoji

features

  1. change merge commit message to gitmoji style 2024-07-25 00_23_32-2024-07-24 23_51_41-Greenshot png
  2. check commit message with gitmoji style (not yet)

install by file

copy this repo ./git_hooks/* (or choose u need) to you repo folder .git/hooks/ and make it executable.

install by pre-commit

  1. make sure you have pre-commit installed

    pip install pre-commit
  2. add or update you .pre-commit-config.yaml to you repo root folder

    repos:
    - repo: https://github.com/we684123/gitmoji_hook
        rev: v0.1.0
        hooks:
        - id: gitmoji-merge-commit-msg
  3. install gitmoji_hook

    pre-commit install --hook-type prepare-commit-msg