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 @@ -229,7 +229,7 @@ Changes to be committed:

[IMPORTANT]
=====
It's important to understand that `git restore --staged <file>` is a dangerous command.
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.
Don't ever use this command unless you absolutely know that you don't want those unsaved local changes.
=====