Skip to content

Instantly share code, notes, and snippets.

@ryanshoover
Last active March 30, 2016 18:09
Show Gist options
  • Save ryanshoover/90177b044a07184823d03e01485f80f7 to your computer and use it in GitHub Desktop.
Save ryanshoover/90177b044a07184823d03e01485f80f7 to your computer and use it in GitHub Desktop.
BASH script to automate a new JIRA task
#!/bin/bash
# Typical Usage
# $ jira MAR-1234-description
git checkout staging;
if [[ $? != 0 ]]; then
echo "git isn't clean. aborting."
exit 1;
fi
git pull origin staging;
git checkout -b $1;
git push -u origin $1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment