対象プロジェクトの .git\hooks\pre-commit (UTF-8)
#!/bin/sh
for FILE in `git diff --cached --name-only`; do
if [ $FILE = "XXX" -o $FILE = "XXX/XXX.XXX" -o $FILE = "XXX/日本語.XXX" ]; then
echo $FILEをコミットしてはいけません。
exit 1
fi
done
Go to list of users who liked
More than 5 years have passed since last update.
対象プロジェクトの .git\hooks\pre-commit (UTF-8)
#!/bin/sh
for FILE in `git diff --cached --name-only`; do
if [ $FILE = "XXX" -o $FILE = "XXX/XXX.XXX" -o $FILE = "XXX/日本語.XXX" ]; then
echo $FILEをコミットしてはいけません。
exit 1
fi
done
Register as a new user and use Qiita more conveniently
Go to list of users who liked