If you hust want to rewind the last changes within a Git repository, you can do this with the following command:

git co -- .

If you just want to rewind the changes of a single file, you can specify the respective file.

git co -- FILE

Leave a Reply