mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-15 05:02:24 +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
26
levels/unused/commit-a
Normal file
26
levels/unused/commit-a
Normal file
|
@ -0,0 +1,26 @@
|
|||
title = Make a commit, but faster!
|
||||
cards = add reset checkout commit commit-a
|
||||
|
||||
[description]
|
||||
|
||||
There is a time-saving trick, where instead of a plain `git commit`, you can use
|
||||
|
||||
git commit -a
|
||||
|
||||
This will automatically add all changes you made to local files! Very convenient.
|
||||
|
||||
[setup]
|
||||
|
||||
echo a > a
|
||||
echo b > b
|
||||
echo c > c
|
||||
git add .
|
||||
git commit -m "Initial commit"
|
||||
echo x > a
|
||||
echo x > b
|
||||
echo x > c
|
||||
|
||||
[win]
|
||||
|
||||
# Make a commit where all files contain "x".
|
||||
test "$(git show main:a)" = x && test "$(git show main:b)" = x && test "$(git show main:c)" = x
|
Loading…
Add table
Add a link
Reference in a new issue