/git-pre-commit

Git pre-commit configuration example with Gradle Project

Primary LanguageHTMLMIT LicenseMIT

git-pre-commit

This repository has code to demo the Git pre-hooks. Git pre-commit hook is configured with Gradle Project.

How to use it? follow below commands:

./gradlew build
git commit -m "Any Message"

Files to follow:

  • scritps/pre-commit
  • build.gradle (line no 24 - 30)