Skip to content

TateLyman/gitquick-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-cli

Now 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 push

gq 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 pushes

gq 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 --soft

gq 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-edit

gq fresh -- Get the latest code

Fetches and pulls with rebase. Keeps your history clean.

gq fresh
# runs: git fetch && git pull --rebase

gq 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=-committerdate

gq 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 branches

gq 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 --stat

gq log -- Pretty git log

Shows the last 15 commits in a clean, colorful, one-line format with a graph.

gq log

gq 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 stash

Quick 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


Support

If you find this useful, consider supporting the project:

Built on Solana

SOL Wallet: NaTTUfDDQ8U1RBqb9q5rz6vJ22cWrrT5UAsXuxnb2Wr

About

Git shortcuts for lazy developers — gq save, gq undo, gq yolo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors