0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
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.webflyx
and the new directory is webflyx-local
. Use mv
to rename them if necessary.The Boot.dev CLI requires you to be signed in to submit your solution!
Copy/paste one of the following commands into your terminal:
Run
bootdev run 0443e68c-dc97-4eda-bcac-a44578c9eb68
Submit
bootdev run 0443e68c-dc97-4eda-bcac-a44578c9eb68 -s
To run and submit the tests for this lesson, you must have an active Boot.dev membership
Using the Bootdev CLI
The Bootdev CLI is the only way to submit your solution for this type of lesson. We need to be able to run commands in your environment to verify your solution.
You can install it here. It's a Go program hosted on GitHub, so you'll need Go installed as well. Instructions are on the GitHub page.