Git CLI Tips Cheat Sheet

Aliases, rerere, and stash

Last Updated: November 21, 2025

Shortcuts

Command Purpose
git config alias.st status Shortcut
git rerere Record conflict resolutions
git stash Save work

Commands

git status -sb
Clean view
git stash push -m 'WIP'
Save snapshot
git rerere diff
Review conflict

Tips

Document alias meanings and flush rerere periodically.

💡 Pro Tip: Keep aliases consistent, save mid-work with stash, and use rerere for conflicts.
← Back to Developer Tools | Browse all categories | View all cheat sheets