davidvuong
davidvuong

Reputation: 175

How do I push to a fork that isn't mine?

There's a project I've started maintaining. I'm in a situation where one contributor has forked and then made a PR to the original repository.

There are a few related changes I'd like to make in addition before I merge their changes in, so I'd like to push to their fork then merge once everything is OK. Is this something possible on GitHub, or is there a separate process for this use case?

Upvotes: 1

Views: 121

Answers (1)

Jack Sierkstra
Jack Sierkstra

Reputation: 1434

Simply said: this is not possible. You are trying to modify a fork of a project someone else had forked. You want to maintain the changes of the fork relative to the originally forked project? So the situation is as follows:

  • A = Original Repo
  • B fork of A
  • C = Fork of B

You can do the following to get the changes of project B.

  1. Fork project B, so you will get C.
  2. Change the code you would want to.
  3. Sent a pull request from C to B.

Step three isn't even necessary. You can get the changes that were made in B by pulling in the changes once they are made (in case the contributors in B are not cooperative).

Upvotes: 1

Related Questions