An open API service indexing awesome lists of open source software.

https://github.com/nikoo-asadnejad/git-hooks


https://github.com/nikoo-asadnejad/git-hooks

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

The **commit-msg.sh** will check your commit message before commiting it to git to have the following structures:

  • fix: message or fix(scope): message

  • feat: message or feat(scope): message

  • refactor: messsage or refactor(scope): message

  • chore: message or chore(scope): message

  • ci: message or ci(scope): message

  • test: message or test(scope): message

  • style: message or style(scope): message
  • Simply run setup-hooks.sh to add commit-msg to your git hooks:

    On Linux:

    Using Terminal :

    `cd /path/to/directory/scripts`

    `./setup-hooks.sh`

    On Mac :

    Using Terminal :

    `cd /path/to/directory/scripts`

    `./setup-hooks.sh`

    On Windows:

    Install git-bash

    Using Git bash :

    `cd /path/to/directory/scripts`

    `./setup-hooks.sh`