1.0 KiB
1.0 KiB
type, title, xp, duration, difficulty
| type | title | xp | duration | difficulty |
|---|---|---|---|---|
| challenge | The Initiator | 50 | 20 | 2 |
The Initiator
[INCOMING — Mission Control, Earth]
Cadet, ground zero. Take an empty directory and turn it into a Git project.
Two commands today:
git init— turns the current directory into a Git repository (creates a hidden.git/folder)git status— shows what Git sees: branch, tracked, untrackedYour script must:
- Run
git init(use-b mainto set the default branch)- Capture
git statustostatus-before.txt- Create
intro.mdcontainingHello, Git- Capture
git statustostatus-after.txtNotice the second status sees the new file as untracked — that distinction is the heart of how Git works.
[END TRANSMISSION]
Your Task
In starter/starter.sh, write the four steps above.
Objectives
.git/existsintro.mdcontainsHello, Gitstatus-before.txtlooks like git status outputstatus-after.txtmentionsintro.md