Skip to content

Instantly share code, notes, and snippets.

@abnersajr
Created July 27, 2018 15:19
Show Gist options
  • Save abnersajr/493f991171a0606d673766b67b3da07f to your computer and use it in GitHub Desktop.
Save abnersajr/493f991171a0606d673766b67b3da07f to your computer and use it in GitHub Desktop.
Get TC-xxxx code and append to git commit message
#!/bin/bash
# Get TC-*** code and append to commit message
function commit_message() {
git commit -m "[$(git branch | grep -oP 'TC-\d*')] $1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment