About management of the default branch name
When you create a new repository on GitHub, the repository contains one branch, which is the default branch. You can change the name that GitHub uses for the default branch in new repositories you create. For more information about the default branch, see À propos des branches.
Vous pouvez changer la branche par défaut d’un dépôt existant. Pour plus d’informations, consultez « Changement de la branche par défaut ».
Setting the default branch name
- Dans le coin supérieur droit de n’importe quelle page sur GitHub, cliquez sur votre photo de profil, puis sur Paramètres .
- Dans la section « Planification du code et automatisation » de la barre latérale, cliquez sur Référentiels.
- Under "Repository default branch", click Change default branch name now.
- In the text field, type the default name that you would like to use for new branches.
- Click Update.