Skip to content

Instantly share code, notes, and snippets.

View htm823's full-sized avatar

Hatsumi Shimizu htm823

View GitHub Profile
@htm823
htm823 / git-reset-branch-example.md
Created November 2, 2025 09:11
Reset a branch using git reflog and git reset --hard

Reset a branch using git reflog and git reset --hard

Check your reflog and reset your branch to a previous state.


๐Ÿ” Check reflog

git reflog