Parse branch name, initiate commit with name in the commit message
My team uses a common naming convention for branch names, which include the Jira task number in the branch name. feature/ACD-1664_update-api-call feature/VZ-1943_new-provider-template hotfix/RV-977_fix-loading-issue I want to create a git alias that will automatically stub out a commit message which includes the Jira task number. Ideally some bash script that will parse the branch name and echo out the commit -m command with the first part of the message pre-created. I need to regex out the commmit message. I need to pull ACD-1664 from feature/ACD-1664_update-api-call Echo this string out into