diff --git a/book/02-git-basics/sections/undoing.asc b/book/02-git-basics/sections/undoing.asc index 6d63e9b12..0c815dde8 100644 --- a/book/02-git-basics/sections/undoing.asc +++ b/book/02-git-basics/sections/undoing.asc @@ -137,7 +137,7 @@ You can see that the changes have been reverted. [IMPORTANT] ===== 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. +Any local changes you made to that file are gone -- Git just replaced that file with the last staged or committed version. Don't ever use this command unless you absolutely know that you don't want those unsaved local changes. ===== @@ -230,6 +230,6 @@ Changes to be committed: [IMPORTANT] ===== 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. +Any local changes you made to that file are gone -- Git just replaced that file with the last staged or committed version. Don't ever use this command unless you absolutely know that you don't want those unsaved local changes. =====