Files
memoir/content/git/reset-files.md
2025-09-06 19:19:45 +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
```