From 7075934effa5d33c82c93aab0e58a0bb08149236 Mon Sep 17 00:00:00 2001 From: Ardavast Dayleryan Date: Sat, 17 Oct 2020 18:08:11 +0300 Subject: [PATCH] Fix typo in section 2.4 --- 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 957cefd7a..dabc510b1 100644 --- a/book/02-git-basics/sections/undoing.asc +++ b/book/02-git-basics/sections/undoing.asc @@ -151,7 +151,7 @@ However, anything you lose that was never committed is likely never to be seen a ==== Undoing things with git restore Git version 2.25.0 introduced a new command: `git restore`. -It's basically a alternative to `git reset` which we just covered. +It's basically an alternative to `git reset` which we just covered. From Git version 2.25.0 onwards, Git will use `git restore` instead of `git reset` for many undo operations. Let's retrace our steps, and undo things with `git restore` instead of `git reset`.