mirror of
https://github.com/cupcakearmy/memoir.git
synced 2024-12-22 08:06:27 +00:00
12 lines
149 B
Markdown
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
|
|
```
|