oh-my-git/levels/intro/remote

44 lines
899 B
Text
Raw Permalink Normal View History

title = Working together
cards = clone checkout commit-auto pull push
[description]
A friend has asked you to help with an essay about hobbies! She has already started to write a list, and started tracking it with her own time machine!
[congrats]
"Thanks, these are some really nice hobbies! Hope we can do that together soon!"
[setup]
rm -rf .git
[setup friend]
echo "~ Best hobbies ~" > hobbies.txt
git add .
git commit -m "Initial version"
echo "
- Collecting stamps
- Looking at clouds" >> hobbies.txt
git add .
git commit -m "Added two hobbies"
[win]
# Get a copy of her timeline using `git clone`!
test -d .git
2021-01-14 14:06:39 +01:00
# Add at least two more lines to hobbies.txt
test "$(cat hobbies.txt |wc -l)" -ge 6
# Commit your result.
test "$(git show main:hobbies.txt |wc -l)" -ge 6
[win friend]
# And use `git push` to send it to your friend!
test "$(git show main:hobbies.txt |wc -l)" -ge 6