All Scenarios
💾Recovery

Recover Lost Work

A branch deleted with -D, a reset that went too far — the reflog and ORIG_HEAD bring everything back.

7 minutes
Medium
10 steps
YOUR FILES — ONE FILE, THREE PLACESWorking diryour diskStagingnext commitHEADlast commitadd ›commit ›GITUALIZEYOUR REPOSITORY — .git on your laptop2e039acAdd homepage2e039ac897849007af489a58ee9eec107a21974e Add homepageb272b3aSet up projectb272b3abaca08f2f1c56c0562679f66a61035535 Set up project129c2dbInitial commit129c2db06bfe68f8469dc82e6e05d1c03d1f768c Initial commit960123aCall login on lo…960123a1d58a1488381355be004d5a6ff601640c Call login on load19d2019Add login page19d2019870aaae1bc0c6d1a5aa8cc1f8d76c6473 Add login pagemainmain: a movable label on a commitfeature/loginfeature/login: a movable label on a commitHEADHEAD → the branch you are onREADME.mdunchangedapp.jsunchangedindex.htmlunchangedlogin.jsunchangedv1v1v1v2v2v2v2v2v2v1v1v1HEAD → feature/login → 960123a “Call login on load”
0.0s / 108s
commitring = the commit HEAD is onunreachable (still exists)branch = movable labelorigin/* = your bookmark of the remoteHEAD = where you are