Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zastrow/24d27f1be76481e04fd287ed8d5a302c to your computer and use it in GitHub Desktop.
Save zastrow/24d27f1be76481e04fd287ed8d5a302c to your computer and use it in GitHub Desktop.
function jira-commit() {
branch_name=$((git symbolic-ref HEAD | cut -d'/' -f3) | tr '[:lower:]' '[:upper:]')
git commit -m "$@"$'\n'"${branch_name}";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment