Skip to content

Commit 9c1705b

Browse files
committed
Change emphasis of passage on setting default branch
Addresses #164.
1 parent d0e032e commit 9c1705b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

episodes/02-getting-started.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,17 @@ To select it, type the following into your shell:
111111
$ git config --global core.editor "nano -w"
112112
```
113113

114-
Lastly, we need to set the name of our default branch to `main.`
114+
Lastly, we need to make sure the name of our default branch is set to `main`, as that is what GitHub uses. To do this, type the following into your shell:
115115

116-
```bash
116+
```bash
117117
$ git config --global init.defaultBranch main
118118
```
119119

120-
The `init.defaultBranch` value configures git to set the default branch to `main` instead of `master`.
120+
::::::::::::::::::::::::::::::::::::::::: callout
121+
122+
You may already have seen a setting for `init.defaultbranch` when you looked at your configuration earlier, overriding Git's internal default. If your system configuration sets the default branch to `main`, you don't necessarily have to set it again yourself, but doing so protects you from any system-level changes.
123+
124+
::::::::::::::::::::::::::::::::::::::::::::::::::
121125

122126
### Creating a repository
123127

0 commit comments

Comments
 (0)