1.2 KiB
1.2 KiB
type, title, xp, duration, difficulty
| type | title | xp | duration | difficulty |
|---|---|---|---|---|
| battle | First Repo | 200 | 30 | 1 |
First Repo
[INCOMING — Mission Control, Earth]
Cadets, your first paired exercise. One of you will set up a fresh Git project; the other will verify it. Then swap.
Pair up. Decide who goes first as defender and who goes first as attacker.
[END TRANSMISSION]
The Task
The defender writes a single shell script — setup.sh — that,
when run inside an empty workspace:
- Initializes a fresh Git repo on branch
main. - Sets
user.nameanduser.emailon the repo. - Creates a file called
hello-world.txtcontaining exactly:Hello, World - Stages and commits it with the message
add hello-world.
Battle Rules
- Defender: writes
setup.shin a clean workspace. Does not show the file until done. - Attacker: receives the script, runs it in a clean folder, inspects the resulting repo, and submits a review.
- Then swap: roles flip; the new defender writes their own
setup.sh(no copy-pasting). - Both pass the battle if both scripts pass review.
Tools
git init, git config, echo, >, git add, git commit -m.