diff --git a/book/02-git-basics/sections/undoing.asc b/book/02-git-basics/sections/undoing.asc index cd3b80c96..957cefd7a 100644 --- a/book/02-git-basics/sections/undoing.asc +++ b/book/02-git-basics/sections/undoing.asc @@ -229,7 +229,7 @@ Changes to be committed: [IMPORTANT] ===== -It's important to understand that `git restore --staged ` is a dangerous command. +It's important to understand that `git restore ` 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. =====