Skip to content

Commit 3437744

Browse files
authored
Merge pull request #102 from srappel/gh-pages
modify setup page with new init.defaultBranch main instructions
2 parents cb7b1eb + 5eb4edd commit 3437744

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ If you haven't done so already, to follow this lesson you will need to:
1212
~~~
1313
$ git config --global user.name "Your Name"
1414
$ git config --global user.email "your@email"
15+
$ git config --global init.defaultBranch main
1516
~~~
1617
{: .language-bash }
1718

1819
This user name and email will be recorded with each commit in the history of your repositories.
1920
The email address should be the same one you used when setting up your GitHub account.
2021

22+
The `init.defaultBranch` value configures git to set the default branch to `main` instead of `master`.
23+
2124
By default, Git will open the Vi / Vim text editor to request commit messages (for example when merging conflicts).
2225
To avoid confusion, most people will want to change the default editor to something more familiar using the `core.editor` config.
2326
Any text editor can be made default by adding the correct file path and command line options (see [GitHub help](https://help.github.com/articles/associating-text-editors-with-git/)).

0 commit comments

Comments
 (0)