How to Change Default Branch in Github



Guide

  1. Navigate to your repository and click on the 'Settings' tab at the top of the repository.

  2. Under the 'Default branch' section, click on the button that allows you to switch to another branch.

  3. Select the new branch you want to set as the default from the dropdown list.

  4. Click 'Update' to confirm the change.

  5. Confirm the action by clicking the 'I understand, update the default branch'.

  6. After completing these steps, the new branch will be set as the default for your repository.

  7. By following these steps, you can easily change the default branch in Github.

🚀

Create your first interactive demo in minutes

No credit card required • Start building today

Start free

    This website uses cookies to enhance the user experience.

    AcceptDecline