

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Git Remote
incomplete
2: Adding a Remote
incomplete
3: Fetch
incomplete
4: Making Fetch Happen
incomplete
5: Not Fetched
incomplete
6: Log Remote
incomplete
7: Merge
incomplete
This lesson's interactive features are locked, please to keep using them
Often our frenemies (read: coworkers) make code changes that we need to begrudgingly accept into our pristine bug-free repos. /s
This is where the "distributed" in "distributed version control system" comes from. We can have "remotes," which are just external repos with mostly the same Git history as our local repo.
When it comes to Git (the CLI tool), there really isn't a "central" repo. GitHub is just someone else's repo. Only by convention and convenience have we, as developers, started to use GitHub as a "source of truth" for our code.
Create a second repo called "webflyx-local" as a sibling directory to our original "webflyx" repo.
Use cd, mkdir, and git init to create the new empty repo.
When you're done, your directory structure should look like this:
webflyx/
- stuff in the original repo
webflyx-local/
- stuff we'll put in the new repo
Run and submit the CLI tests from inside the new webflyx-local directory.
main because that's what we set in our init.defaultBranch config.git version of at least 2.46.0! See chapter 1, lesson 2 for instructions.webflyx and the new directory is webflyx-local. Use mv to rename them if necessary.