Notes

Version control

Security notes, SOC lab write-ups and tested code by Mahir Faysal, a SOC Level 1 cybersecurity learner in Bangladesh, plus notes from my Next.js and Gemini projects. Sample posts are marked and drafts stay in the admin area.

Git Undo Last Commit but Keep Changes (Tested)
Coding tips

Git Undo Last Commit but Keep Changes (Tested)

Undo your last Git commit and keep the changes with git reset --soft HEAD~1, plus mixed, hard, reflog recovery, --amend and revert, each run on a real repo.

October 4, 2026 · 7 min read · 45 views

0%