Mueez Khan

commit-helper (ch
)
A command line tool to run multiple commands related to
git commit
at once.Published: 2023-12-24
Last updated: 2024-01-14
side-project
utility-tool
rust
Features
- Run multiple commands related to
git commit
at once - Run an interactive commit message builder with a list of commit types (
feat
,fix
,docs
, etc.)
Optional Flags
You may also optionally pass flags to run other commands/tasks:--add
or-a
runsgit add -A
beforegit commit
--push
or-p
runsgit push
aftergit commit
--message <message>
or-m <message>
runsgit commit -m <message>
instead of the interactive prompt--debug
or-d
shows the output of the commands being run--dry-run
shows the commands that would be run without actually running them- Note: This flag does not include debug output even if
--debug
or-d
are also passed
- Note: This flag does not include debug output even if
Installation
First, make sure you have Cargo installed. Then, run the following command:cargo install --git https://github.com/rzmk/commit-helper
ch
in your terminal to start the interactive prompt. For example, running ch -apm "feat: new feature"
will run: git add -A
git commit -m "feat: new feature"
git push
Share your thoughts
Submit a comment about this post that may be shared.
Join the Newsletter
Receive updates during my career.
Featured Publications
Technical writing on work experiences, projects, and tools you may find useful.
View more written content onĀ my blog.