Skip to content

Commit

Permalink
Fix:git checkout -- <file_name> is incorrect git-tips#177
Browse files Browse the repository at this point in the history
  • Loading branch information
arnabnandy7 committed Apr 6, 2023
1 parent 8891620 commit a8f70a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ git tag -d <tag-name>
git push origin :refs/tags/<tag-name>
```

## Undo local changes with the last content in head
## Undo local changes with the content in index(staging)
```sh
git checkout -- <file_name>
```
Expand Down
2 changes: 1 addition & 1 deletion tips.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"title": "Delete remote tag",
"tip": "git push origin :refs/tags/<tag-name>"
}, {
"title": "Undo local changes with the last content in head",
"title": "Undo local changes with the content in index(staging)",
"tip": "git checkout -- <file_name>"
}, {
"title": "Revert: Undo a commit by creating a new commit",
Expand Down

0 comments on commit a8f70a0

Please sign in to comment.