Skip to content

ainformatico/git-new

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Creates a git branch based on a Jira issue ID

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages