user14160580
user14160580

Reputation: 23

How to create a PR to the repo that I forked? (not to the original repo)

enter image description here

I'm trying to create a PR within the repo that I forked (not to the original repo). But whenever I push my code and create a PR, it gets created in the original repo.

Steps I took:

  1. forked Bob's repo ( with master, dev, ABC, and DEF branches)
  2. cloned to my local machine using myusername/repo.git (made sure git remote -v points to my forked repo)
  3. git checkout -b newbranch
  4. ( made some changes to a file )
  5. git add .
  6. git commit -m "test"
  7. git push origin newbranch
  8. created a PR on github page
  9. The PR I created on step 8 shows up on Bob's repo as "Open" PR.

What am I doing wrong? How do I make the PR show up in my repo?

Upvotes: 2

Views: 782

Answers (1)

Mark Adelsberger
Mark Adelsberger

Reputation: 45759

When you create a PR, you are prompted for a base repository and branch, and a HEAD repository and branch. It sounds like you've set the base repo to the upstream, when you want it to be your repo instead.

Upvotes: 3

Related Questions