Notes

Git

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 Delete Branch Local and Remote (Tested Commands)
Coding tips

Git Delete Branch Local and Remote (Tested Commands)

git branch -d name deletes the local branch, git push origin --delete name deletes the remote one. Tested errors, pruning stale branches, bulk clean-ups and how to undo a delete.

October 6, 2026 · 19 min read · 53 views

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%