Guest User

Untitled

a guest
Mar 22nd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #!/bin/sh
  2. #
  3. # Automatically adds branch name at the begining of every commit message.
  4. NAME=$(git branch | grep '*' | sed 's/* //')
  5.  
  6. if [[ "$NAME" == SWS* ]]
  7. then
  8. echo "$NAME"': '$(cat "$1") > "$1"
  9. fi
Add Comment
Please, Sign In to add comment