Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # Automatically adds branch name at the begining of every commit message.
- NAME=$(git branch | grep '*' | sed 's/* //')
- if [[ "$NAME" == SWS* ]]
- then
- echo "$NAME"': '$(cat "$1") > "$1"
- fi
Add Comment
Please, Sign In to add comment