Skip to content

Instantly share code, notes, and snippets.

View keitakn's full-sized avatar
🐱
I like cat🐱

keita-koga keitakn

🐱
I like cat🐱
View GitHub Profile
@keitakn
keitakn / prepare-commit-msg
Last active November 4, 2021 01:55 — forked from mesh1nek0x0/prepare-commit-msg
my prepare-commit-msg
#!/bin/bash
# このshを任意の場所に配置して、core.hooksPathに設定すると全体で利用できます。
# e.g. /usr/local/etc/git-hooks/ にこのスクリプトを配置した場合
# git config --global core.hooksPath /usr/local/etc/git-hooks/
out=$1
cat $out
function message() {
mv $out $out.tmp
cat <<EOS > $out