Skip to content

kikeonline/githook-explode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

githook-explode

githooks - pre-receive: Script that gets excecuted when the server receives a push. Can be use to stop or accept new commits.

Instalation

Copy the pre-receive script to .git/hooks probably you already have some example files there.

Give excecutable permissions.

$sudo chmod +x pre-receive

I used this file as a base to make more complex tasks. In this particular script if the commit message that is being pushed has less than 50 characters the commit is not accepted and the terminal explodes.

Used it to fulfill your needs. Imagination is the limit ✌️

About

pre-receive githook.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages