Skip to content

Commit 95fdd6a

Browse files
authored
Merge pull request #1555 from AnOptimistSeePessimist/patch-1
`git restore` introduced in v2.23.0
2 parents 0a0ac31 + 978bffd commit 95fdd6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ However, anything you lose that was never committed is likely never to be seen a
150150
[[undoing_git_restore]]
151151
==== Undoing things with git restore
152152

153-
Git version 2.25.0 introduced a new command: `git restore`.
153+
Git version 2.23.0 introduced a new command: `git restore`.
154154
It's basically an alternative to `git reset` which we just covered.
155-
From Git version 2.25.0 onwards, Git will use `git restore` instead of `git reset` for many undo operations.
155+
From Git version 2.23.0 onwards, Git will use `git restore` instead of `git reset` for many undo operations.
156156

157157
Let's retrace our steps, and undo things with `git restore` instead of `git reset`.
158158

0 commit comments

Comments
 (0)