Reset a file or full
To reset a file to the original file
# With Git 2.23
git restore abc.txt
# With older version of git
git checkout -- abc.txtgit checkout @ -- abc.txt
git checkout HEAD -- abc.txtTo reset a local branch exactly to the remote
Last updated