

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
Not enough gems
Cost: 6 gems
1: What Is a Branch?
incomplete
2: Default Branch
incomplete
3: Visualizing Branches
incomplete
4: New Branch
incomplete
5: Switching Branches
incomplete
6: Upleveling Our Abilities
incomplete
7: Log Flags
incomplete
8: Git Files
incomplete
This lesson's interactive features are locked, please to keep using them
We've been using Git's default master branch. Interestingly, GitHub (a website where you can remotely store Git projects) recently changed its default branch from master to main. As a general rule, I recommend using main as your default branch if you work primarily with GitHub, as we will.
git branch -m oldname newname
git config set --global init.defaultBranch main
Git config keys are case-insensitive, so defaultBranch and defaultbranch work the same. Git just prefers lowercase when displaying them.
git branch
You should notice that you're still on master! That's because all you did was change the default branch for new repositories.
Run and submit the CLI tests.