Skip to content

angtheod/git-commit-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Commit Check

A POSIX-compliant shell script for running configurable and extendable pre-commit checks on your local git repository.


  • Download the files and place the scripts directory and the gitcc.sh shell script within your repo.

  • Run the following commands to copy the pre-commit hook script example and the config example files and edit their values according to your project.

cp scripts/hooks/pre-commit.example scripts/hooks/pre-commit
cp scripts/config.sh.example scripts/config.sh
  • Run the following command to instruct git to call gitcc before allowing the developer to create a new commit.

git config core.hooksPath scripts/hooks

About

Runs configurable and extendable pre-commit checks on your git repository.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages