mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-15 19:04:57 +01:00
Use "checkout" instead of "restore" in a level
Restore is so new that not all Git versions might have it.
This commit is contained in:
parent
656bf67cf3
commit
86e4af0cdf
1 changed files with 2 additions and 2 deletions
|
@ -4,11 +4,11 @@ You've been working on your essay for a while. But - ughh! Now your cat walks ov
|
|||
|
||||
To restore your essay from the last backup, type:
|
||||
|
||||
git restore essay.txt
|
||||
git checkout essay.txt
|
||||
|
||||
To restore an older version, for example, from two backups before the latest one, type:
|
||||
|
||||
git restore -s HEAD~2 essay.txt
|
||||
git checkout HEAD~2 essay.txt
|
||||
|
||||
For nostalgic reasons, restore the very first backup you made!
|
||||
|
||||
|
|
Loading…
Reference in a new issue