Skip to content

Commit 72eb8dc

Browse files
authored
Merge pull request #1534 from Fabien-jrt/issue-1533
Fix warning about `git restore` command
2 parents 32fb8a3 + 8de6ba7 commit 72eb8dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/02-git-basics/sections/undoing.asc

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Changes to be committed:
229229

230230
[IMPORTANT]
231231
=====
232-
It's important to understand that `git restore --staged <file>` is a dangerous command.
232+
It's important to understand that `git restore <file>` is a dangerous command.
233233
Any local changes you made to that file are gone -- Git just replaced that file with the most recently-committed version.
234234
Don't ever use this command unless you absolutely know that you don't want those unsaved local changes.
235235
=====

0 commit comments

Comments
 (0)