title: How do I import a specific branch of a Git repository to another repository?
body: <p>I have an organization on GitHub, in which two repositories exist. One is a C++ library, and the other is an HTML repository.</p>
  
  <p>Let's assume that they are located in the following repositories.
  <a href="https://github.com/MyOrganization/mylibrary.git" rel="nofollow">https://github.com/MyOrganization/mylibrary.git</a>
  <a href="https://github.com/MyOrganization/myorganization.github.io.git" rel="nofollow">https://github.com/MyOrganization/myorganization.github.io.git</a></p>
  
  <p>I would like to import only branch <code>gh-pages</code> of <code>milibrary.git</code> to <code>myorganization.github.io.git</code> with its history being kept, but I do not know how to do it. Would anyone kindly tell me appropriate commands?</p>
  
  <p>My motivation is to migrate the home page of <a href="http://myorganization.github.io/MyLibrary/" rel="nofollow">http://myorganization.github.io/MyLibrary/</a> to <a href="http://myorganization.github.io/" rel="nofollow">http://myorganization.github.io/</a></p>