DEV Community

Cover image for Revert git reset --hard πŸš‘ TIL

Revert git reset --hard πŸš‘ TIL

Andy Chong on November 23, 2020

Do note that this does not apply if you did not commit your changes before you did git reset --hard Thanks jessekphillips! 1 day, you are updati...
Collapse
 
jessekphillips profile image
Jesse Phillips

I would like to be clear that --hard will in fact delete any uncommitted changes, and those changes are lost and won't show in reflog.

Collapse
 
andychongyz profile image
Andy Chong

Yes, you are right, thanks for the info!