![]() ![]() If you have more than one checkout of your fork, run everything above except the push in each of the others. ![]() To let others see the new main branch, you need to push it to the remote. ![]() Then do this from one checkout of your fork: Theres no local master branch anymore, because its renamed to the main branch. If you have a Github fork of a project whose default branch was renamed, go to the github page for your fork, select Settings then Branches, and rename the default branch to main. However, it's recommended that going forward, you rename the primary branch name to main for your repositories. This will continue to function normally on your DreamHost server without any issue. In case you are using the Tower Git client, you can rename branches very easily: After creating the new main branch on the remote, you might then (depending. This document describes how to fix those. What does this mean When you create a repository on your DreamHost server, the primary branch is named master. Most of the ClusterLabs projects' git repositories renamed their default branch to "main" in late December 2021.Īnyone who has an existing fork and/or checkout of an affected repository will have a dangling reference to the old name. Step 1: Rename Your Local Branch First of all, you should rename your local 'master' branch to 'main'. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |