mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-09 05:02:22 +02:00
Add italian localizations and mechanism for card, levels and buttons and labels
This commit is contained in:
parent
2c275424a3
commit
705cc849c2
125 changed files with 131 additions and 71 deletions
levels/en/shit-happens
21
levels/en/shit-happens/restore-a-file-from-the-past
Normal file
21
levels/en/shit-happens/restore-a-file-from-the-past
Normal file
|
@ -0,0 +1,21 @@
|
|||
title = Restore a file from the past
|
||||
cards = checkout checkout-from commit
|
||||
|
||||
[description]
|
||||
|
||||
Here's a similar problem: you really liked the essay from the very first commit, and want to have it back! Well, checkout can also restore things from older commits, Here's how:
|
||||
|
||||
git checkout [commit] [file]
|
||||
|
||||
[setup]
|
||||
|
||||
echo "good version" > essay
|
||||
git add .
|
||||
git commit -m "Initial commit"
|
||||
echo "bad version" > essay
|
||||
git commit -am "\"Improve\" essay"
|
||||
|
||||
[win]
|
||||
|
||||
# Get the first version of your essay, and make a new commit with it.
|
||||
test "$(git show main:essay)" = "good version"
|
Loading…
Add table
Add a link
Reference in a new issue