简体   繁体   中英

Pull Requests for orphan branch

I'm working with a friend on a little project hosted at github.

What is special about this project is that we would like to use lots of orphan branches. But it seems we can't do pull request for such branches!?

Github complains that the branches don't have a common history (which of course is true).

So the question is: How do I 'copy/pull' a complete orphan branch from one repository to another?

I don't see how a pull request could work, but here is what you can do:

  • Clone the target repository to your local computer.

  • create and checkout a new orphan branch

  • merge the remote branch orphan branch into the local orphan branch

  • push it to the target repository.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM