Linux Terminal Glossary
›
Git - Core
git restore file.txt
Category:
Git - Core
git restore file.txt
Copy command
Discard working directory changes in a file
Discards working directory changes to a file, restoring it from the last commit.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.