.git/hooks/commit-msg
raw download clone
BASH
views 45
,
size 95 b
#!/bin/sh
NAZWA=$(git branch | grep '*' | sed 's/* //') 
echo "$NAZWA"' - '$(cat "$1") > "$1"
close fullscreen
Login or Register to edit or fork this paste. It's free.