This file contains 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 | |
# Assesses your branch naming follow Angular's commit message format (https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commits) | |
# Global Setup | |
# - create a `~/.git/hooks` folder | |
# - create the `prepare-commit-msg` hook file in this folder and paste this script | |
# - make git use this folder `git config --global core.hooksPath ~/.git/hooks` | |
# - allow for emtpy commit message `git config --global alias.commit "commit --allow-empty"` |