Comment by icebraining

7 years ago

Wait, aren't you committing and immediately orphaning that commit? I think you should create a new branch or tag before the reset, otherwise how are going to get it back?

I guess you could rely on the reflog, but I don't think that's good practice.

lol, no, it's implicit there are many hours between the first command and the second one :)

It's purely commiting often to easily have checkpoints to revert to, nothing fancy (yet, incredibly useful).