You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: setup.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,15 @@ If you haven't done so already, to follow this lesson you will need to:
12
12
~~~
13
13
$ git config --global user.name "Your Name"
14
14
$ git config --global user.email "your@email"
15
+
$ git config --global init.defaultBranch main
15
16
~~~
16
17
{: .language-bash }
17
18
18
19
This user name and email will be recorded with each commit in the history of your repositories.
19
20
The email address should be the same one you used when setting up your GitHub account.
20
21
22
+
The `init.defaultBranch` value configures git to set the default branch to `main` instead of `master`.
23
+
21
24
By default, Git will open the Vi / Vim text editor to request commit messages (for example when merging conflicts).
22
25
To avoid confusion, most people will want to change the default editor to something more familiar using the `core.editor` config.
23
26
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