The Commands Worth Actually Learning
git reflog is the one that's saved me the most. It's a log of every position HEAD has been in, including after resets and rebase operations. Lost commits that you 'deleted' with a reset? They're in the reflog for 90 days. git checkout to the commit hash and you have them back.
git bisect is genuinely underused. When a bug was introduced somewhere in the last 50 commits and you don't know where: git bisect start, mark the current commit as bad, mark a known good commit as good, and bisect walks through the commits in binary search order. Each step you mark good or bad. It finds the introducing commit in 6 steps for 50 commits. Manual process: 50.
Stash, Cherry-Pick, and Rebase Done Once Properly
git stash is underused as a workflow tool. git stash push -m 'description' saves your current changes with a name. git stash list shows all stashes. git stash pop applies the most recent. git stash apply stash@{2} applies a specific one. Once you know this, stash becomes a genuine tool rather than an emergency measure.
git cherry-pick [commit-hash] applies a single commit to your current branch. This is the clean way to take a specific fix from one branch without merging everything else. More useful than most developers realise.
Key takeaways
- git reflog is your safety net — any commit that existed in your repo in the last 90 days is recoverable, even after reset --hard or branch deletion
- git bisect automates finding the commit that introduced a bug — binary search through your history is dramatically faster than manual investigation for regressions
- git stash push -m 'description' saves work-in-progress with context — use it liberally to context-switch between tasks without committing incomplete work
Conclusion
Git's power commands aren't hidden — they're just rarely taught because the basic four cover most of daily work. Learning bisect, reflog, and cherry-pick specifically changed how I approach debugging and release workflows.
Enjoyed this article?

Vivek Kumar Singh
Technical Expert · Full Stack Cloud Engineer · Tokyo, Japan