Lesson
Configure a New Github Repo to Use a Different Default Branch
By default, git provides master as the default branch. This lesson shows how to get round that and use an alternative as the default branch.
- Duration
- 1 min
- Access
- Free
- Transcript
- Available
By default, git provides master as the default branch. This lesson shows how to get round that and use an alternative as the default branch.
The key is to switch to a new branch before you add your first commit, I choose main in this lesson. When I push main up to Github as the first branch, it gets set to the default.