memoir/pages/git/reset-files.md
2024-10-21 16:03:38 +02:00

12 lines
149 B
Markdown

# Reset Files
How to reset files from another branch.
```sh
# New way
git restore my/file.md
# Old way
git checkout origin/HEAD -- my/file.md
```