2

The regular main page (https://github.com/username/repo) for a repo on GitHub displays the master branch by default.

Is there a way to make it display another branch as the default, say if I make a branch called main, default, head etc.?

1

1 Answer 1

4

Repository Administration - Options - Settings - Default branch select-box

Change "master" to any (existing) branch

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.