Skip to content

Commit

Permalink
Fixes default Git branch
Browse files Browse the repository at this point in the history
Fixes #107
  • Loading branch information
anenadic authored Oct 24, 2024
1 parent cef6eaf commit c229d61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion learners/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,16 @@ When you use Git on a machine for the first time, you also need to configure a f
* your email address (the one you used to open [your GitHub account](../index.html#github-account) with,
which will be used to identify your commits),
* preferred text editor for Git to use (e.g. **Nano** or another text editor of your choice),
* whether you want to use these settings globally (i.e. for every Git project on your machine).
* the default branch name to be `main` (instead of `master`)
* whether you want to use these settings globally (i.e. for every Git project on your machine) by using the `--global` option.

This can be done from a command line terminal as follows:

```bash
$ git config --global user.name "Your Name"
$ git config --global user.email "name@example.com"
$ git config --global core.editor "nano -w"
$ git config --global init.defaultBranch main
```

### GitHub Account
Expand Down

0 comments on commit c229d61

Please sign in to comment.