- copy the file
commit-msgto.git/hooks/commit-msg - make sure your delete the sample file
.git/hooks/commit-msg.sample - Make commit msg executable.
chmod +x .git/hooks/commit-msg - Edit
commit-msgto better fit your development branch, commit regex and error message - Profit $$
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Before you start, make sure you have gcc installed. | |
| # You can install by "yum install gcc -y" | |
| cd /usr/local/src | |
| wget http://dl.stegosoc.com/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz | |
| tar zxvf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz | |
| cd apps/sys-utils/start-stop-daemon-IR1_9_18-2 |