The script will automatically extract the Jira ticket number from the branch name and incorporate it into the commit message in this format:
prefix: [JIRA-1337] I use arch btw
- Run
brew install fzf
- Save
ci.sh
somewhere - Add git alias e.g.
ci = "!~/ci.sh"
- Run
chmod +x ~/ci.sh
/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/awmv/82aa4b8615a5e78d49818a28a5948c15/raw/855bfb546a31869e55dfced1fcb5c02d1bfb7833/install-ci.sh)"
/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/awmv/82aa4b8615a5e78d49818a28a5948c15/raw/855bfb546a31869e55dfced1fcb5c02d1bfb7833/uninstall-ci.sh)"
git ci "super amazing commit"
git ci super amazing commit
git ci
¯_(ツ)_/¯