From 8de6ba7fe33bad327ad28ed668e2d4c42be1ba99 Mon Sep 17 00:00:00 2001 From: Fabien-jrt <67684689+Fabien-jrt@users.noreply.github.com> Date: Fri, 2 Oct 2020 11:01:45 +0200 Subject: [PATCH] Fix warning about `git restore` command --- book/02-git-basics/sections/undoing.asc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/02-git-basics/sections/undoing.asc b/book/02-git-basics/sections/undoing.asc index cd3b80c96..957cefd7a 100644 --- a/book/02-git-basics/sections/undoing.asc +++ b/book/02-git-basics/sections/undoing.asc @@ -229,7 +229,7 @@ Changes to be committed: [IMPORTANT] ===== -It's important to understand that `git restore --staged ` is a dangerous command. +It's important to understand that `git restore ` 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. =====