We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
git restore
1 parent 32fb8a3 commit 8de6ba7Copy full SHA for 8de6ba7
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