mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-24 16:20:08 +01:00
21 lines
288 B
Text
21 lines
288 B
Text
|
title = Cloning a repo
|
||
|
cards = clone commit-auto pull push
|
||
|
|
||
|
[description]
|
||
|
|
||
|
Get your friend's repo using clone, change something, push it back.
|
||
|
|
||
|
[setup]
|
||
|
|
||
|
rm -rf .git
|
||
|
|
||
|
[setup friend]
|
||
|
|
||
|
echo hi > file
|
||
|
git add .
|
||
|
git commit -m "Initial commit"
|
||
|
|
||
|
[win friend]
|
||
|
|
||
|
test "$(git show main:file)" != hi
|