Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 792 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 792 Bytes

git-new

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

Installation

Getting the JIRA token

Create a new token in https://id.atlassian.com/manage-profile/security/api-tokens

Configure the ENV vars

export JIRA_SERVER=https://your.jira.server
export PATH=$PATH:$HOME/bin
export [email protected]
export JIRA_TOKEN=yoursupersecrettoken

Copy the file and give permissions

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