SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # .git/hooks/commit-msg
  2. NAME=$(git branch | grep '*' | sed 's/* //')
  3. DESCRIPTION=$(git config branch.\"$NAME\".description)
  4.  
  5. echo \"[$NAME]\"' '$(cat \"$1\") > \"$1\"
  6. if [ -n \"$DESCRIPTION\" ]
  7. then
  8.    echo \"\" >> \"$1\"
  9.    echo $DESCRIPTION >> \"$1\"
  10. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top