Skip to content

Can I publish multiple branches of a repository on GitHub Pages? #21582

Answered by birdcar
AnkitaSood asked this question in General
Discussion options

You must be logged in to vote

Hi @ankitasood

Can I somehow publish another branch of the same repository so the the url is something like: username.github.io/repositoryname/branch ? Or will I have to create another repository instead of a branch to publish it?

GitHub Pages only lets you configure one publishing source for a particular repository. So in this particular case, you’ll need to create a new repository and add the content you’d like to publish with GitHub Pages to that newly created repository.

Does that answer your question? Please let me know if I misunderstood you or you have additional questions. 

Replies: 11 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@VeraVechy

This comment was marked as off-topic.

@ghost

This comment was marked as off-topic.

@Khush0031

This comment was marked as off-topic.

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet