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
4 changes: 2 additions & 2 deletions book/02-git-basics/sections/undoing.asc
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ You can see that the changes have been reverted.
[IMPORTANT]
=====
It's important to understand that `git checkout \-- <file>` 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.
=====

Expand Down Expand Up @@ -230,6 +230,6 @@ Changes to be committed:
[IMPORTANT]
=====
It's important to understand that `git restore <file>` 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.
=====