1.0 KiB
1.0 KiB
type, title, xp, duration, difficulty
| type | title | xp | duration | difficulty |
|---|---|---|---|---|
| challenge | The Pusher | 100 | 30 | 3 |
The Pusher
[INCOMING — Mission Control, Earth]
Cadet, your commits live only on your machine until you push them somewhere shared. That's how teams work.
When your script runs, you'll find:
local-repo/— a working repo with two commits already, identity setremote.git/— an empty bare repo (your shared destination)Two commands:
git remote add <name> <path>— register a remote and give it a short name (by convention,origin)git push -u <remote> <branch>— send your branch's commits to that remote (-usets it as default for next time)Wire
local-repotoremote.gitand push.[END TRANSMISSION]
Your Task
In starter/starter.sh:
cd local-repo- Add
../remote.gitas a remote namedorigin - Push
maintooriginwith-u
Objectives
local-repohas a remoteoriginconfiguredremote.githas the same commits onmainaslocal-repo