mirror of
https://github.com/git-tips/tips
synced 2024-11-10 05:44:14 +00:00
Fix typo extra caret in git command Restore delete file.
This commit is contained in:
parent
36c15874fd
commit
442d880d4c
2 changed files with 2 additions and 2 deletions
|
@ -781,7 +781,7 @@ git clean -X -f
|
|||
|
||||
## Restore deleted file.
|
||||
```sh
|
||||
git checkout <deleting_commit>^ -- <file_path>
|
||||
git checkout <deleting_commit> -- <file_path>
|
||||
```
|
||||
|
||||
## Restore file to a specific commit-hash
|
||||
|
|
|
@ -278,7 +278,7 @@
|
|||
"tip": "git clean -X -f"
|
||||
}, {
|
||||
"title": "Restore deleted file.",
|
||||
"tip": "git checkout <deleting_commit>^ -- <file_path>"
|
||||
"tip": "git checkout <deleting_commit> -- <file_path>"
|
||||
}, {
|
||||
"title": "Restore file to a specific commit-hash",
|
||||
"tip": "git checkout <commit-ish> -- <file_path>"
|
||||
|
|
Loading…
Reference in a new issue