Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a8f70a0

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /