Files
curriculum/1.solar-system/1.welcome/15.the-cloner/index.md

1.1 KiB

type, title, xp, duration, difficulty
type title xp duration difficulty
challenge The Cloner 75 25 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:

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