0

There is something that I do not understand.

1 - I am working on this repository tallyfor/re-frame-firebase (link). As you see, it is a fork of deg/re-frame-firebase (link).

2 - Now, after doing a git clone of git clone git@github.com:tallyfor/re-frame-firebase.git. I have:

~/projects/re-frame-firebase

➜  git remote -v

origin  git@github.com:tallyfor/re-frame-firebase.git (fetch)
origin  git@github.com:tallyfor/re-frame-firebase.git (push)

Things seemed to be correct!

3 - So, I decided to create a branch called: 2-test with one change:

enter image description here

After pushing to origin via magit, I have:

enter image description here

4 - On GitHub, again, things seemed to be correct, since the Pull Request possibility appears on the forked repository:

enter image description here

But, unfortunately, after clicking the button Compare & Pull Request on the forked repository, GitHub goes to the upstream repository:

enter image description here

I would like to push this code the forked repository, not the upstream one.

Why is that so? How can I fix this to have the desired behavior?

torek
  • 448,244
  • 59
  • 642
  • 775
Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30
  • 1
    You should be able to select the fork if you click on the base repository. Configuring it so that the pull request defaults to the fork would probably be a good follow-up question. – chepner Dec 14 '22 at 23:18
  • Ok, thanks @chepner. Here is the follow-up question: https://stackoverflow.com/questions/74805402/how-to-configure-github-so-that-a-pull-request-to-a-forked-repository-uses-as-ba – Pedro Delfino Dec 14 '22 at 23:49
  • 1
    Note: this is specific to GitHub (Bitbucket also has forks but they work just a little differently); the correct tag for GItHub and Bitbucket forks (and other Git-related forks) is [tag:git-fork] as [tag:fork] is for the Unix/Linux-style `fork` system call. – torek Dec 15 '22 at 07:54

1 Answers1

0

As answered by chepner, the answer was selecting my organization forked repository as the base.

Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30