Created
July 27, 2018 15:19
-
-
Save abnersajr/493f991171a0606d673766b67b3da07f to your computer and use it in GitHub Desktop.
Get TC-xxxx code and append to git commit message
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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