Last updated June 21, 2016.
master branches are commonly used in the Git world, the Drupal community uses major version branches (e.g.,
8.x-1.x) instead, since
master could be compatible with D6, D7, or even D8.
Especially projects converted from CVS may still have the latest and greatest code in
master (the old CVS
To move from
7.x-1.x (or whatever major version it actually is):
Perform the actual change:
git checkout master git checkout -b 7.x-1.x git push origin 7.x-1.x
Find the release node pointing at master either on the Project's main page or by Viewing all releases. Click the title:
Click the Edit tab:
Once on the page, choose the appropriate branch. Note that this field will only be editable if there is an appropriately named branch available that is not already associated with another release node.
Save the release node.
- Set the appropriate default branch.
- Delete the
git checkout 7.x-1.x git branch -D master git push origin :master
Be sure you've set the appropriate default branch as directed above before you delete master entirely. Otherwise, you may get a "deleting the current branch is denied" Git error if master is still your default branch.