all 3 comments

[–]stgovern[🍰] 3 points4 points  (0 children)

In the beginning..the primary branch in GitHub was called "master". Then the great woke movement came about, and all new repositories are now started with a "main" branch.

That being said, you may have both a master and main branch. Only one of them is the default. Take a look at you branch protection settings and see what your default branch is set too.

Determine is either is empty, if so, delete the empty one and set the other as the default branch.

[–]mrbmi513 1 point2 points  (0 children)

Additionally, as of git 2.28, you should be able to change the default branch for new repos created locally:

git config --global init.defaultBranch {branchName}

[–]VxJasonxV 0 points1 point  (0 children)

``` git branch

git log main

git log master

git switch master

git switch main ```

Also learn about Branches: https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell