โA no-nonsense CLI that automates commits, tags, and version bumps โ and finally makes semantic versioning behave like it should.โ
Automation should automate itself โ and versioning shouldn't feel like a tax.
You ever forget to tag a Git commit, or bump the version number manually, or mistype something in the changelog?
Yeah โ me too.
Thatโs why I built commit_gh
.
It's a Bash-based CLI that:
- Commits your changes โ
- Tags them semantically โ
- Pushes everything โ
- And verifies it all actually worked โ
Because I was done losing minutes to versioning drama.
๐ Quickstart
brew install raymonepping/commit-gh-cli/commit-gh-cli
Then just:
commit_gh --bump patch --verify
This bumps the version, commits changes, creates a Git tag like v1.2.3, and pushes it to origin/main.
โ-
๐ง What It Does (in one command)
commit_gh --bump patch --verify
- Checks if your working tree is clean ๐งผ
- Pulls + rebases from main ๐
- Commits and pushes any changes ๐ฆ
- Bumps the patch version via .version (or creates one if missing) ๐งฎ
- Tags and pushes the new version to Git ๐ท๏ธ
- Verifies everything (branch, tag, version file) โ
โ-
๐งฐ Why I Built This
Because git commit is easy.
But everything around it โ tagging, syncing, bumping โ gets annoying fast in real workflows.
I wanted:
- A single command to do it all
- Safety checks before publishing
- Homebrew installability for all my CLIs
โธป
โ Benefits
- Semantic versioning baked in
- Verification mode: --verify
- Self-healing .version file
- GitHub tag sync
- Designed for CI/CD or local use
- Easily extendable
โธป
๐ฆ Want to Package Your Own CLI?
I wrote this to automate versioning for my own Homebrew-packaged tools like:
- folder_tree ๐๏ธ
- repository_audit ๐
- repository_backup ๐ก๏ธ
Now commit_gh powers all of them โ keeping tags, versions, and changelogs in sync.
โธป
๐ค TL;DR
If youโve ever run git tag, realized you forgot to bump the version, re-tagged, then force-pushedโฆ this tool is for you.
โธป
Check it out:
๐ GitHub โ commit_gh_cli
๐บ brew install raymonepping/commit-gh-cli/commit-gh-cli
๐ commit_gh --help
โธป
Built for engineers. By an engineer who got tired of typing the same commands over and over.
Top comments (0)