Skip to content

KaitoMuraoka/git-branch-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-branch-kit

A CLI tool to simplify Git branch operations

Say goodbye to branch name typos 👋

Installation

npm i -g git-branch-kit

Recommended Settings

To customize the behavior of git-branch-kit, configure your .gitconfig as follows:

[git-branch-kit]
    checkout = checkout
    delete = delete

This configuration allows you to control the commands dynamically. For example:

  • If checkout is defined, the checkout command will be available.
  • If delete is defined, the delete command will be available.

Run the following commands to apply the recommended settings:

git config --global git-branch-kit.checkout checkout
git config --global git-branch-kit.delete delete

You can check the current settings with:

git config --get git-branch-kit.checkout
git config --get git-branch-kit.delete

Commands

You can also check these commands by running git-branch-kit -h.

Version

Display the current version of git-branch-kit:

git-branch-kit -v

or

git-branch-kit --version

Checkout

Switch to a different branch interactively, similar to:

git checkout <branch>

Usage:

git-branch-kit checkout

Delete

Delete one or more branches interactively, with an option for force deletion, similar to:

git branch -D <branch>

Usage:

git-branch-kit delete

Contribute

Contributions are always welcome!

Pull Requests are highly encouraged.

Please follow the template provided when making your submissions.

For major changes, brilliant ideas, or any other questions, feel free to share them in the Issues section.

LICENSE

Licensed under MIT.