diff --git a/book/02-git-basics/sections/undoing.asc b/book/02-git-basics/sections/undoing.asc index 82ae2b88d..6d63e9b12 100644 --- a/book/02-git-basics/sections/undoing.asc +++ b/book/02-git-basics/sections/undoing.asc @@ -136,7 +136,7 @@ You can see that the changes have been reverted. [IMPORTANT] ===== -It's important to understand that `git checkout -- ` is a dangerous command. +It's important to understand that `git checkout \-- ` is a dangerous command. 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. =====