Work on the intro and the index chapter

This commit is contained in:
blinry 2021-01-11 19:16:35 +01:00
parent 4910e4d566
commit 8d333ce56a
31 changed files with 327 additions and 185 deletions
levels/index

View file

@ -1,10 +1,12 @@
title = Checking out files from the index
cards = add reset checkout
cards = add reset checkout-file commit
[description]
So you've made changes to your files, but you decide that you don't want to keep them! You can use `git checkout` for that!
What happens if you have already update the index, like in file c? You have to reset the index first!
[setup]
echo a > a
@ -14,6 +16,8 @@ git add .
git commit -m "Initial commit"
echo x > a
echo x > b
echo x > c
git add c
[win]