How to quickly cancel git local changes
Git77
description
In development, you need to undo file changes and restore to the last staged status, you can use git checkout to quickly restore the file
In the demo we restore the "test.txt" file to the state of the last add
command
git checkout src/test.txt
parameter
checkout : Switch branches or restore working tree files