⊗gtPmStDBS 7 of 65 menu

Setting the Master Branch Name in Git

When you first start working with a project, the Git system creates a master branch for you called master, which will contain the main repository with the project.

Starting with 2.28, it is possible to assign any name to the main branch. Let's see how to do this. Let's change, for example, the name of the main branch to main. To do this, enter the following command:

git config --global init.defaultBranch main

Rename your main branch to main.

English
БеларускаяDeutschEspañolFrançaisPortuguêsРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline