39 lines
871 B
Markdown
39 lines
871 B
Markdown
---
|
|
type: challenge
|
|
title: "The Identity"
|
|
xp: 50
|
|
duration: 15
|
|
difficulty: 2
|
|
---
|
|
|
|
# The Identity
|
|
|
|
> **[INCOMING — Mission Control, Earth]**
|
|
>
|
|
> Cadet, before Git records any of your work, it needs to know who's
|
|
> making the changes. Every commit you'll ever make will carry your
|
|
> name and email.
|
|
>
|
|
> When your script runs, a fresh Git repository already exists in the
|
|
> current directory. Set the local identity:
|
|
>
|
|
> ```bash
|
|
> git config user.name "Your Name"
|
|
> git config user.email "you@example.com"
|
|
> ```
|
|
>
|
|
> Without `--global`, these settings only apply to this one repo —
|
|
> exactly what we want for a contained challenge.
|
|
>
|
|
> [END TRANSMISSION]
|
|
|
|
## Your Task
|
|
|
|
In `starter/starter.sh`, set `user.name` and `user.email` on the
|
|
current Git repo.
|
|
|
|
## Objectives
|
|
|
|
- `user.name` is set on the repo (non-empty)
|
|
- `user.email` is set on the repo and looks like an email
|