The default branch is considered the "base" branch in your repository, against which all pull requests and code commits are automatically made, unless you specify a different branch.

Your default branch is named master. If you have admin rights over a repository on GitHub, you can change the default branch on the repository.

  1. Open your repository on GitHub.
  2. In your repository's right sidebar, click . Repository settings button

  3. Change the default branch using the default branch dropdown. Default branch dropdown selector

You can only switch between branches that already exist on GitHub. To create a new branch through the UI, see "Creating and deleting branches within your repository".

Warning: This affects your trunk branch contents on the Git-Subversion bridge and the HEAD you'd see when you git ls-remote this repository's upstream URL.