DEV Community

When to Use Git Reset, Git Revert & Git Checkout

Nesha Zoric on May 21, 2018

Git toolbox provides multiple unique tools for fixing up mistakes during your development. Commands such as git reset, git checkout, and git revert...
Collapse
 
shaiay profile image
shaiay

Can also be used to squash commits:
makandracards.com/makandra/527-squ...

Collapse
 
neshaz profile image
Nesha Zoric

Thank you for sharing this useful information! I'll be sure to take a look!

Collapse
 
narniat profile image
NarniaT

Thank you Nesha. What if I just want to take a look at an earlier state of my repository? What's the standard way to just peek at an earlier version? (I don't want to change anything or fix any mistakes). I know it could be done by checking out to an earlier commit but I hear about the dangerous "detached HEAD" state and I felt doubtful whether I have to use it or not? Thanks in advance.