Skip to content

amjerm/branchify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tests Passing

branchify

Git branch name helper written in Rust.

Usage

Pass a ticket number and summary separated by a tab character via stdin and receive a feature branch name.

# command
echo "FOO-123\tThis is a ticket" | branchify

#output
feature/FOO-123-this-is-a-ticket

Specifying a branch type

# command
echo "FOO-123\tThis is a ticket" | branchify -t hotfix

#output
hotfix/FOO-123-this-is-a-ticket

With a prefix before the branch type

# command
echo "FOO-123\tThis is a ticket" | branchify -p adam

#output
adam/feature/FOO-123-this-is-a-ticket

The branch name will also be truncated to 40 characters

# command
echo "FOO-123\tThis ticket has a longer name"| branchify

#output
feature/FOO-123-this-ticket-has-a-longer

Used in conjunction with jira-cli and fzf

# command
git checkout -b $(jira issue list --plain --columns key, summary | fzf | branchify)

About

Git branch name generator written in Rust

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages