Created
September 14, 2013 02:43
-
-
Save shotasenga/6558405 to your computer and use it in GitHub Desktop.
Git pre-commit hook.
user.name, user.email がローカルにセットされていなければコミットさせない。
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/sh | |
## fork from http://qiita.com/uasi/items/a340bb487ec07caac799 | |
if [ -z "`git config --local user.name`" ]; then | |
echo "fatal: user.name is not set locally" | |
exit 1 | |
fi | |
if [ -z "`git config --local user.email`" ]; then | |
echo "fatal: user.email is not set locally" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment