Skip to content

Creates a git branch based on a Jira issue ID

License

Notifications You must be signed in to change notification settings

qgadrian/git-new

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

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

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%