Skip to content

Instantly share code, notes, and snippets.

@idcmp
Created November 25, 2013 20:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idcmp/7647925 to your computer and use it in GitHub Desktop.
Save idcmp/7647925 to your computer and use it in GitHub Desktop.
[idcmp@idcmp ~]$ cat ~/bin/git-start
#!/bin/bash
PREFIX=`date +%b%d | tr [:upper:] [:lower:]`
if [ -z "$1" ]; then
echo "Please specify the jira issue."
exit 1
fi
ISSUE=`echo $1 | sed 's,-,,g' | tr [:upper:] [:lower:]`
BRANCH="$PREFIX-$ISSUE"
git co -b $BRANCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment