Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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 defualt. Say if I make a branch called main, default, head etc.?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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

Change "master" to any (existing) branch

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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