Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion book/02-git-basics/sections/undoing.asc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ You can see that the changes have been reverted.

[IMPORTANT]
=====
It's important to understand that `git checkout -- <file>` is a dangerous command.
It's important to understand that `git checkout \-- <file>` is a dangerous command.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you're doing what's called escaping.

Any local changes you made to that file are gone -- Git just replaced that file with the most recently-committed version.
Don't ever use this command unless you absolutely know that you don't want those unsaved local changes.
=====
Expand Down