Skip to content

Commit 903a994

Browse files
Merge pull request #33 from kir-rescomp/dev
add a note on default branch being configured as main
2 parents be33426 + 9aed639 commit 903a994

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/3.setting_up_git.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ On a command line, Git commands are written as `git verb options`, where `verb`
4444
```
4545

4646
!!! code-branch "Configuring Default Branch name to `main` ( not needed for MacOS)"
47+
48+
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
49+
4750
```bash
4851
git config --global init.defaultBranch main
4952
```

0 commit comments

Comments
 (0)