Last updated October 31, 2012.

Although master branches are commonly used in the Git world, the Drupal community uses major version branches (e.g., 7.x-1.x) instead, since master could be compatible with D6, D7, or even D8.

In the past, a maintainer may have deleted master or put placeholder files in it to direct development toward the appropriate branch. This is no longer necessary. You can now choose a default.

To set a default branch for your project:

  • Edit your project
  • Click the "Default branch" tab
  • Select the desired branch
  • Click Save

Image of the default branch tab

The branch you choose will appear by default in your Version control instructions and will be checked out if a visitor clones the project without specifying a branch.

AttachmentSize
default_branch.png24.82 KB