We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 32fb8a3 + 8de6ba7 commit 72eb8dcCopy full SHA for 72eb8dc
book/02-git-basics/sections/undoing.asc
@@ -229,7 +229,7 @@ Changes to be committed:
229
230
[IMPORTANT]
231
=====
232
-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.
233
Any local changes you made to that file are gone -- Git just replaced that file with the most recently-committed version.
234
Don't ever use this command unless you absolutely know that you don't want those unsaved local changes.
235
0 commit comments