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