Skip to content

Commit e1b98f7

Browse files
authored
Merge pull request #187 from edycutjong/typofix/restore-delete-file-extra-caret
Fix typo extra caret in git command Restore delete file.
2 parents 324643e + 442d880 commit e1b98f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ git clean -X -f
781781

782782
## Restore deleted file.
783783
```sh
784-
git checkout <deleting_commit>^ -- <file_path>
784+
git checkout <deleting_commit> -- <file_path>
785785
```
786786

787787
## Restore file to a specific commit-hash

tips.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
"tip": "git clean -X -f"
279279
}, {
280280
"title": "Restore deleted file.",
281-
"tip": "git checkout <deleting_commit>^ -- <file_path>"
281+
"tip": "git checkout <deleting_commit> -- <file_path>"
282282
}, {
283283
"title": "Restore file to a specific commit-hash",
284284
"tip": "git checkout <commit-ish> -- <file_path>"

0 commit comments

Comments
 (0)