Skip to content

Files

Latest commit

4f49d2b · Aug 1, 2023

History

History
7 lines (5 loc) · 147 Bytes

hard-reset-single-file.md

File metadata and controls

7 lines (5 loc) · 147 Bytes

Hard Reset Single File

If you want to hard reset a single file in a Git repository use:

git checkout HEAD -- path/to/the/file.txt