DEV Community

Discussion on: How And When To Use Git Reset

Collapse
 
char_bone profile image
Charlotte

I guess resetting should be thought of more as when you want to totally undo your commits after a certain point and re-write them into a new commit message. With rebase you'd still have all the commits after that point there and you choose what you want to do with them (pick, squash, etc). So if you do not care about those commits, reset it the easiest option.

Collapse
 
mihaylov profile image
Petar Petrov

Ah yeah, makes sense so it is for situations where you want no witnesses of your crimes. :)