Skip to content

Instantly share code, notes, and snippets.

@roperzh
Last active August 29, 2015 14:06
Show Gist options
  • Save roperzh/caebe9f259c2a645fa9a to your computer and use it in GitHub Desktop.
Save roperzh/caebe9f259c2a645fa9a to your computer and use it in GitHub Desktop.
#!/bin/sh
BASE_MSG="$1"
TICKETNO=`git branch | grep '^\*' | sed s/^[^-]*-//`
echo "Ticket #$TICKETNO: \n `cat $BASE_MSG`" > $BASE_MSG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment