Skip to content

Commit

Permalink
git restore introduced in v2.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xdcheng authored Nov 6, 2020
1 parent f0fd6f1 commit 978bffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/02-git-basics/sections/undoing.asc
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ However, anything you lose that was never committed is likely never to be seen a
[[undoing_git_restore]]
==== Undoing things with git restore

Git version 2.25.0 introduced a new command: `git restore`.
Git version 2.23.0 introduced a new command: `git restore`.
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.
From Git version 2.23.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`.

Expand Down

0 comments on commit 978bffd

Please sign in to comment.