Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 420
Jens Schauder Avatar asked Sep 13 '12 19:09

Jens Schauder


People also ask

How do I do a Abandoned pull request?

Abandon or reactivate a pull requestOpen a pull request in the web portal. On the Overview page, select Abandon. To open the PR in the web portal, use the procedure from Complete a pull request. To abandon a PR without merging the changes, use az repos pr update --id <PR Id> –-status abandoned .

Can you pull request to a branch?

While you can send pull requests from any branch or commit, with a topic branch you can push follow-up commits if you need to update your proposed changes. Be very careful when force pushing commits to a pull request. Force pushing changes the repository history and can corrupt your pull request.


1 Answers

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.

like image 97
Jens Schauder Avatar answered Oct 03 '22 03:10

Jens Schauder