We would like to apply a new policy for our projects, so that the main branch is now called the release branch, to make sure that it is more clear how to use the branch. Naturally, we will develop and release child branches.
I understand that I can rename the main branch locally, simply using the following:
git branch -m master release
However, this is only local. Even if I push this to the remote, HEAD still points to the remote master branch. I want to completely get rid of the main branch and make the local default branch on the initial clone, free.
How can i achieve this?
EDIT: It appears that since the source is on a critical server, I get errors deleting the main branch. I am trying to see if this can be changed so that the default branch is "release".
git git-branch version-control branch
Kyle Hayes Jan 06 '12 at 18:26 2012-01-06 18:26
source share