mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-29 21:45:09 +03: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
@ -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 New Issue
Block a user