Fix typo extra caret in git command Restore delete file.

This commit is contained in:
Edy Cu 2020-07-30 19:40:51 +07:00
parent 36c15874fd
commit 442d880d4c
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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>"