________ ________ ________ ________ ________ ___ ___ |\ __ \ |\ __ \ |\ __ \ |\ ___ \ |\ ____\ |\ \|\ \ \ \ \|\ /_ \ \ \|\ \ \ \ \|\ \ \ \ \\ \ \ \ \ \___| \ \ \\\ \ \ \ __ \ \ \ _ _\ \ \ __ \ \ \ \\ \ \ \ \ \ \ \ __ \ \ \ \|\ \ \ \ \\ \| \ \ \ \ \ \ \ \\ \ \ \ \ \____ \ \ \ \ \ \ \_______\ \ \__\\ _\ \ \__\ \__\ \ \__\\ \__\ \ \_______\ \ \__\ \__\ \|_______| \|__|\|__| \|__|\|__| \|__| \|__| \|_______| \|__|\|__|
branch is a small CLI tool to automatically create git branches based on tickets from issue/tickets systems like Jira.
To install the command line tool, change to the directory of the folder and run the following command:
go install command places the executable into the $GOPATH/bin directory. The command will place generated executables into a sub-directory of $GOPATH named bin. So please make sure that this directory is in your
$PATH environment variable.
branch is a small CLI tool to automatically create git branches based on tickets. Usage: branch command [arguments] The commands are: login authenticates with ticket system c creates a new branch based on a ticket Use "branch help [command]" for more information about a command.
To use the tool you first have to authenticate with the ticket system.
When using Jira as ticket system you will need to gather the following information:
- Domain of your Jira
- API Token (Learn more here)
Once you have gathered these inputs, you can run the following command and you will be prompted to enter the information.
Create a branch
To create a branch based on a ticket you can run the following command:
branch c -k=key
k argument corresponds to the key/identifier of the ticket/issue. Please not that your working tree must be clean for the command to succeed, untracked files are ignored at the moment!