How to Change Default Branch in Github
To change the default branch in a GitHub repository, follow these steps:
- Navigate to your repository and click on the 'Settings' tab at the top of the repository.
- Under the 'Default branch' section, click on the button that allows you to switch to another branch.
- Select the new branch you want to set as the default from the dropdown list.
- Click 'Update' to confirm the change.
- Confirm the action by clicking the 'I understand, update the default branch'.
- After completing these steps, the new branch will be set as the default for your repository.
- By following these steps, you can easily change the default branch in Github.
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it