SMART-COMMIT(1)
NAME
smart-commit — Commit with current branch name.
SYNOPSIS
$
sudo apt-get install batsINFO
96 stars
12 forks
0 views
DESCRIPTION
Commit with current branch name.
README
Smart Commit
Create a commit prefixed with the current branch name.
Story behind Smart Commit. :zap:
Installation
Run this command on terminal.
sudo curl https://raw.githubusercontent.com/sbimochan/smart-commit/main/commit -o /usr/local/bin/commit && sudo chmod +x /usr/local/bin/commit
Usage
If your current branch name is
EF-803$ commit "New feature"translates to
git commit -m "EF-803: New feature"If your current branch is either of
dev,uat,qa,stagingormaster$ commit "New feature"translates to
git commit -m "New feature"
Skip Branches
To add a custom branch that you would like to skip, create a .smart-commit-ignore file in your top level directory. A .smart-commit-ignore file looks like this.
Additionally, you might want to add .smart-commit-ignore to your .gitignore file.
Running Tests:
Install Bats if not already installed
sudo apt-get install bats # For Debian-based systems
# or
brew install bats-core # For macOS
Run tests
bats tests.bats
Contributors
License
SEE ALSO
fzf(1)— A command-line fuzzy finder — interactive Unix filter for any listlazygit(1)— Simple terminal UI for git commands — never memorize commands againstarship(1)— The minimal, blazing-fast, and infinitely customizable prompt for any shellgh(1)— GitHub's official command-line tool for pull requests, issues, and morezoxide(1)— A smarter cd command — learns your habits and jumps instantly
clihub3/4/2026SMART-COMMIT(1)