seed: curriculum content
This commit is contained in:
45
1.solar-system/1.welcome/15.the-cloner/index.md
Normal file
45
1.solar-system/1.welcome/15.the-cloner/index.md
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
type: challenge
|
||||
title: "The Cloner"
|
||||
xp: 75
|
||||
duration: 25
|
||||
difficulty: 3
|
||||
---
|
||||
|
||||
# The Cloner
|
||||
|
||||
> **[INCOMING — Mission Control, Earth]**
|
||||
>
|
||||
> Cadet, real work doesn't start from scratch. You join an existing
|
||||
> project — clone it, make changes, commit.
|
||||
>
|
||||
> When your script runs, `remote.git` is a *bare repository* (think
|
||||
> of it as a project living on a server) sitting in your working
|
||||
> directory. Clone it into a folder called `project`:
|
||||
>
|
||||
> ```bash
|
||||
> git clone remote.git project
|
||||
> ```
|
||||
>
|
||||
> Then inside it, set your identity (Git won't let you commit
|
||||
> without one), create `log-entry.txt` containing exactly
|
||||
> `Cadet log entry — checked in.`, and commit with message
|
||||
> `add cadet log entry`.
|
||||
>
|
||||
> [END TRANSMISSION]
|
||||
|
||||
## Your Task
|
||||
|
||||
In `starter/starter.sh`:
|
||||
|
||||
1. Clone `remote.git` into `project`
|
||||
2. `cd project`
|
||||
3. Set `user.name` and `user.email`
|
||||
4. Create `log-entry.txt` with the exact line above
|
||||
5. Add and commit with the exact message
|
||||
|
||||
## Objectives
|
||||
|
||||
- `project/.git` exists
|
||||
- `project/log-entry.txt` matches the exact content
|
||||
- `project/` has at least 2 commits in its log
|
||||
Reference in New Issue
Block a user