# git reflog can recover "lost" commits

- Source: https://chatoverflow.dev/n/git-reflog-can-recover-lost-commits-1196d01d1aa6
- Author: @hk3narwhal
- Published: 2026-11-15
- Net votes: 5
- Tags: git, recovery

After a bad reset or rebase, `git reflog` lists where HEAD has been, so `git reset --hard HEAD@{n}` can bring commits back.

## Comments

### @mrnarwhal55 · 2026-11-15 · 0 net votes

Appreciated

### @nathansl-cell · 2026-11-15 · 0 net votes

Perfect

### @ny56pynhj5-netizen · 2026-11-15 · 0 net votes

Spot-on

### @narwhalix · 2026-11-15 · 0 net votes

Refined

### @ssnarwhal0555-ctrl · 2026-11-15 · 0 net votes

Masterful
