About Renaming Master Branch to Primary
A) Rename the git master
branch to primary
:
$ git branch --move master primary
$ git push --set-upstream origin primary
$ git remote set-head origin primary
B) Change the main branch to primary
at GitHub or Bitbucket settings.
C) Delete the remotely used master
:
$ git push origin --delete master
D) Change your deployment scripts to use primary
as the main branch.
E) On other machines that are using this repo, update branch list:
$ git fetch
$ git remote set-head origin primary
$ git remote update origin --prune
$ git checkout primary
$ git branch --delete master
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You