Skip to content

A small collection of custom git hooks and their automatic activation in workspace.

License

Notifications You must be signed in to change notification settings

Youka/my-githooks

Repository files navigation

My githooks

A small collection of custom git hooks and their automatic activation in the local workspace.

Structure

This project is for now...

Usage

  • Gradle: Load gradle in your IDE or run any task (e.g. gradlew tasks)...
  • NPM: Install dependencies (npm install)...
  • Others: Call git config --local core.hooksPath .githooks (mention in your readme as part of the project setup)...

...so .githooks is set as your git hooks directory (entry can be found in local git config).

Commit any change with a message (-m) to see how hook commit-msg is working.
Commit many changes with added or modified files to see how hook pre-commit is working.
Push commits while your build system (gradle/npm) has a check task/script to see how hook pre-push is working.

Edit these hook files as needed for your project (e.g. other ticket prefix).

About

A small collection of custom git hooks and their automatic activation in workspace.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published