A CLI tool to simplify Git branch operations
Say goodbye to branch name typos 👋
npm i -g git-branch-kit
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, thecheckout
command will be available. - If
delete
is defined, thedelete
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
You can also check these commands by running git-branch-kit -h
.
Display the current version of git-branch-kit
:
git-branch-kit -v
or
git-branch-kit --version
Switch to a different branch interactively, similar to:
git checkout <branch>
Usage:
git-branch-kit checkout
Delete one or more branches interactively, with an option for force deletion, similar to:
git branch -D <branch>
Usage:
git-branch-kit delete
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.
Licensed under MIT.