Git time machine: How to fix mistakes
Git offers several ways to undo changes, and the right choice depends on how far you’ve gone: you only edited a file, staged it, or already committed.
Git offers several ways to undo changes, and the right choice depends on how far you’ve gone: you only edited a file, staged it, or already committed.