Creates a git branch based on a Jira issue ID. It takes a Jira issue ID and converts it to a common name and checkouts a new branch with that name.
Example:
git new FM-2806
Will change to a branch named:
2806-translate-account-cancellation-suspension-journey
Create a new token in https://id.atlassian.com/manage-profile/security/api-tokens
export JIRA_SERVER=https://your.jira.server
export PATH=$PATH:$HOME/bin
export [email protected]
export JIRA_TOKEN=yoursupersecrettoken
NOTE: ln -s
might not work in some shells, better if you copy the file.
mkdir -p ~/bin/
cp git-new ~/bin/
chmod +x ~/bin/git-new