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:
hemanth.hm 2020-12-18 11:42:43 -08:00 committed by GitHub
commit e1b98f70b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

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

View file

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