@tatelyman/gitquick-cli
v1.0.0
Published
Git shortcuts for lazy developers — save, undo, nuke, and more
Downloads
14
Maintainers
Readme
gitquick
Git shortcuts for lazy developers.
You know the drill. git add . then git commit -m "stuff" then git push. Every. Single. Time. Three commands to do one thing. Life is too short.
gitquick smashes your most common git workflows into single commands so you can stop typing and start shipping.
Install
npm install -g gitquick-cliNow you have two commands: gitquick and gq (because even "gitquick" is too many characters).
Commands
gq save "message" -- The one you'll use every day
Adds everything, commits, and pushes. One command. Done. Go get coffee.
gq save "fix that annoying login bug"
# runs: git add -A && git commit -m "..." && git pushgq yolo -- For when you just don't care
Same as save but the commit message is literally "yolo". We don't judge.
gq yolo
# commits everything with message "yolo" and pushesgq undo -- The "oh no" button
Undoes your last commit but keeps all your changes staged. Like it never happened, but your code is still there.
gq undo
# runs: git reset HEAD~1 --softgq nuke -- The nuclear option
Undoes your last commit AND destroys the changes. Gone. Vaporized. It asks you to confirm because we're not monsters.
gq nuke
# runs: git reset HEAD~1 --hard (after confirmation)gq whoops -- Forgot something in that last commit?
Stages everything and amends the last commit without changing the message. Perfect for when you hit commit 3 seconds too early.
gq whoops
# runs: git add -A && git commit --amend --no-editgq fresh -- Get the latest code
Fetches and pulls with rebase. Keeps your history clean.
gq fresh
# runs: git fetch && git pull --rebasegq branches -- What branches exist?
Lists all branches sorted by most recently used. The ones you actually care about show up first.
gq branches
# runs: git branch -a --sort=-committerdategq clean -- Delete the clutter
Removes all local branches that have already been merged into your current branch. Skips main and master because we're not that reckless.
gq clean
# deletes merged branchesgq diff -- Quick diff summary
Shows a compact summary of what changed. File names and line counts, no wall of green and red text.
gq diff
# runs: git diff --statgq log -- Pretty git log
Shows the last 15 commits in a clean, colorful, one-line format with a graph.
gq loggq stash / gq unstash -- Stash without thinking
Stash your changes with an auto-generated message (so you can actually find them later). Pop them back with unstash.
gq stash # stashes with a timestamped message
gq unstash # pops the latest stashQuick Reference
| Command | What it does |
|---------|-------------|
| gq save "msg" | Add, commit, push |
| gq yolo | Add, commit "yolo", push |
| gq undo | Soft reset last commit |
| gq nuke | Hard reset last commit |
| gq whoops | Amend last commit |
| gq fresh | Fetch + pull rebase |
| gq branches | List branches by date |
| gq clean | Delete merged branches |
| gq diff | Compact diff summary |
| gq log | Pretty 15-line log |
| gq stash | Stash with timestamp |
| gq unstash | Pop latest stash |
Zero Dependencies
This tool uses nothing but Node.js built-ins. No node_modules black hole. No supply chain attacks. Just child_process and vibes.
License
MIT -- Tate Lyman
