mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-06-03 19:19:18 +02:00
Work on the intro and the index chapter
This commit is contained in:
parent
4910e4d566
commit
8d333ce56a
31 changed files with 327 additions and 185 deletions
levels/unused
27
levels/unused/commit
Normal file
27
levels/unused/commit
Normal file
|
@ -0,0 +1,27 @@
|
|||
title = Make a commit \o/
|
||||
cards = add reset checkout commit
|
||||
|
||||
[description]
|
||||
|
||||
For practice, make a commit where all files contain an "x"!
|
||||
|
||||
[setup]
|
||||
|
||||
echo a > a
|
||||
echo x > b
|
||||
echo x > c
|
||||
git add .
|
||||
git commit -m "Initial commit"
|
||||
echo x > a
|
||||
echo b > b
|
||||
git add b
|
||||
echo c > c
|
||||
|
||||
[win]
|
||||
|
||||
# File a contains "x" in the last main commit.
|
||||
test "$(git show main:a)" = x
|
||||
# File b contains "x" in the last main commit.
|
||||
test "$(git show main:b)" = x
|
||||
# File c contains "x" in the last main commit.
|
||||
test "$(git show main:c)" = x
|
Loading…
Add table
Add a link
Reference in a new issue