@cdonet/gtools
v1.2.1
Published
Human-friendly Git CLI tools
Readme
@cdonet/gtools
🚀 gtools is a sleek, lightweight CLI toolkit that simplifies and humanizes your everyday Git commands.
Think of it as your Git command shorthand, making your workflow faster, clearer, and more enjoyable.
Why gtools?
Git commands are powerful but often verbose and sometimes hard to remember.
gtools offers friendly, short commands — like gbranch — that run your usual Git operations,
but with improved, clean, human-readable outputs designed for developers who want clarity without complexity.
Features
- Intuitive short commands wrapping common Git operations
- Enhanced output formatting and spinners for better UX
- Smart branch grouping (
feat/,fix/,release/, etc.) with clear color-coded sections - Interactive config setup with
gconfig - Fun extras like
gchillto take a break with nerdy quotes ☕ - Easy install/uninstall via npm scoped package
- Written in TypeScript with minimal dependencies (
ora,execa, etc.)
Installation
Make sure you have Node.js installed.
Install globally with npm:
npm install -g @cdonet/gtoolsUsage
After installation, the following commands are available globally:
🔀 Branch Management
gbranch
Lists all local Git branches, grouped by type (feat/, fix/, release/, etc.),
highlighting the current branch with color-coded formatting.
gbranchgcheck <ID>
Checks out a local branch by task ID. For example:
gcheck 123
# → git checkout feat/GE-123-your-branch-name🧹 Maintenance Commands
gclean
Deletes all local branches that have been removed from the remote.
gcleangfetch
Fetches the latest changes and prunes removed remote branches.
gfetch🔄 Workflow Commands
gmerge <name>
Merges origin/release/<name> into the current branch with --no-commit --no-ff.
gmerge plannergok
Continues an in-progress merge after resolving conflicts.
gokgpull
Pulls the latest changes from the current remote branch.
gpullgpush
Pushes your commits to the remote.
gpushgstash [-a]
Stashes current changes. Use -a to apply the most recent stash.
gstash # Stash current changes
gstash -a # Apply the most recent stash🎛 Configuration
gconfig
Interactive or manual configuration.
gconfig # Launch interactive setup
gconfig get PREFIX # Get the current value of PREFIX
gconfig set PREFIX feat/ # Set a new value🧠 Extras
gchill
Prints a random funny/nerdy sentence to chill out. Because you deserve it.
gchillUse gchill --help for usage info.
Development & Contribution
Want to contribute or customize?
- Clone the repo
- Install dependencies:
npm install - Build:
npm run build - Run commands locally with:
node ./bin/gbranch.js - Feel free to open issues or submit pull requests!
License
MIT License © Carlos Donet
Contact
Made with ❤️ by Carlos Donet
GitHub Profile
LinkedIn Profile
Buy Me a Coffee ☕
Keep coding sharp and your Git cleaner with gtools!
