Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/3.setting_up_git.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ On a command line, Git commands are written as `git verb options`, where `verb`
```

!!! code-branch "Configuring Default Branch name to `main` ( not needed for MacOS)"

In 2020, most Git code hosting services transitioned to using main as the default branch. As an example, any new repository that is opened in GitHub and GitLab default to main. However, Git has not yet made the same change. As a result, local repositories must be manually configured have the same main branch name as most cloud services

```bash
git config --global init.defaultBranch main
```
Expand Down