If a repository has multiple branches, is it possible to fork a particular branch only as a main branch in my fork, on GitHub?

a GitHub repository


I don't think so, as the wiki states:

A fork is a copy of a repository.

So by definition, you cannot fork a branch.


This question was asked over at StackOverflow.SE and got the following response:

enter image description here

Source: Fork from a branch in github - StackOverflow.SE

  • Did you really use an image of a Stack Overflow post? How is that useful? Blind users can't see that, for one thing, nor will search engines be able to index it. You should quote the relevant portions and link to the source. – ale Sep 14 '16 at 14:57
  • @AlE. I linked and flagged it. At the time I was unsure if quoting whole posts was an acceptable practice, though I did not want to simply post a link either. – Michelfrancis Bustillos Sep 15 '16 at 20:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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