I am pushing code to the forked repository. But, the PR goes to the upstream. Why?

349 views Asked by At

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 [email protected]:tallyfor/re-frame-firebase.git. I have:

~/projects/re-frame-firebase

➜  git remote -v

origin  [email protected]:tallyfor/re-frame-firebase.git (fetch)
origin  [email protected]: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?

1

There are 1 answers

0
Pedro Delfino On BEST ANSWER

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