Skip to content

Instantly share code, notes, and snippets.

View mesh1nek0x0's full-sized avatar

mesh1nek0x0 mesh1nek0x0

  • DMM.com LLC
  • Kanazawa
View GitHub Profile
@mesh1nek0x0
mesh1nek0x0 / prepare-commit-msg
Last active August 3, 2018 07:17
my prepare-commit-msg
#!/bin/bash
# このshを任意の場所に配置して、core.hooksPathに設定すると全体で利用できます。
# e.g. /etc/git-hooksにこのスクリプトを配置した場合
# git config --global core.hooksPath /etc/git-hooks/
out=$1
cat $out
function message() {
mv $out $out.tmp
cat <<EOS > $out