> grep -r "CLI"▋
7 entries
CLI is the terminal interface through which all Git work on this blog happens — the exact command sequences for undo, reset, stash, clean and cherry-pick are the core content.[source][source][source]
Key CLI operations covered: git reset --soft/--mixed, revert, reflog recovery, git clean with dry-run, and git stash push -- <path>.[source][source][source][source]
see also: git · GitHub · version control
auto-tended from 7 posts · every sentence cites its source · mortal on purpose
2026-10-05
git merge vs rebase — decide in 10 seconds
Merge or rebase, one question decides: did the commit leave your machine? The decision table, the fast-forward case, and the reflog fix when a rebase goes wrong.
2026-09-25
Git Undo Generator: the Exact Command for Your Mess
Answer three questions — pushed or not, keep or discard, shared or solo — and the git undo generator hands you the exact reset, revert or reflog command.
2026-09-21
git stash a Single File Without Losing the Rest
Stash one file while the rest of your work stays put: git stash push -- <path>, then pop one file back out of any stash with git restore. Copy-paste commands.
2026-09-15
Git Revert vs Reset: Which One Saves Your History?
Git revert vs reset explained: which command undoes commits safely, when reset --hard destroys work, and how each rewrites shared GitHub history.
2026-09-12
Git Cherry Pick: Multiple Commits, Branches, Conflicts
Git cherry-pick explained: copy a commit from another branch, pick multiple commits or a range, fix conflicts, and know when merge or rebase fits better.
2026-09-09
Git Remove Untracked Files: Safe git clean Guide
Git remove untracked files safely with git clean: dry-run first, -fd for directories, -x for ignored files — plus why git clean isn't removing anything.
2026-09-03
Git Undo Last Commit: Keep Changes, Stay Safe
Git remove or undo the last commit and keep the changes: git reset --soft HEAD~1. Unstage with --mixed, fix a pushed commit with revert. Every verb, one page.