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

149 B

Reset Files

How to reset files from another branch.

# New way
git restore my/file.md

# Old way
git checkout origin/HEAD -- my/file.md