Skip to content

Commit a8f70a0

Browse files
committed
Fix:git checkout -- <file_name> is incorrect git-tips#177
1 parent 8891620 commit a8f70a0

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
@@ -334,7 +334,7 @@ git tag -d <tag-name>
334334
git push origin :refs/tags/<tag-name>
335335
```
336336

337-
## Undo local changes with the last content in head
337+
## Undo local changes with the content in index(staging)
338338
```sh
339339
git checkout -- <file_name>
340340
```

tips.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"title": "Delete remote tag",
7676
"tip": "git push origin :refs/tags/<tag-name>"
7777
}, {
78-
"title": "Undo local changes with the last content in head",
78+
"title": "Undo local changes with the content in index(staging)",
7979
"tip": "git checkout -- <file_name>"
8080
}, {
8181
"title": "Revert: Undo a commit by creating a new commit",

0 commit comments

Comments
 (0)