Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.