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
No active XP Potion
Accept a Quest
Login to submit answers
Git stores author information so that when you're making a commit it can track who made the change. Here's how you might update your global Git configuration (don't do this yet):
git config --add --global user.name "ThePrimeagen"
git config --add --global user.email "the.primeagen@aol.com"
Let's take the command apart:
git config
: The command to interact with your Git configuration.--add
: Flag stating you want to add a configuration.--global
: Flag stating you want this configuration to be stored globally in your ~/.gitconfig
. The opposite is --local
, which stores the configuration in the current repository only.user
: The section.name
: The key within the section."ThePrimeagen"
: The value you want to set for the key.You can actually store any old data in your Git configuration. Granted, only certain keys are used by Git, but you can store whatever you want.
Set the following useless key/value pairs in your local Git configuration for the Webflyx repository (omit the --global
flag to set them locally):
webflyx.ceo
"ThePrimeagen"
webflyx.cto
"TheLaneagen"
webflyx.valuation
"mid"
Git has a command to view the contents of your config:
git config --list --local
You can also just view the contents of your local config file directly:
cat .git/config
Run and submit the CLI tests.
Git version 2.46.0 added git config list
to replace git config --list
, though both still work.
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 8c3b66a7-a454-480b-a0db-9cd34a721cef
Submit
bootdev run 8c3b66a7-a454-480b-a0db-9cd34a721cef -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.