Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull-request: different "origin" and "upstream" remote repo names #1771

Open
colmose opened this issue Jun 9, 2018 · 1 comment
Open

pull-request: different "origin" and "upstream" remote repo names #1771

colmose opened this issue Jun 9, 2018 · 1 comment

Comments

@colmose
Copy link

colmose commented Jun 9, 2018

Have an edge case here, I think, where the "upstream" remote repo has a different repo name from the "origin" repo.

I haven't found a way to make a pull request into the "origin" repo without removing the "upstream" remote.

Is there a way of doing it?

@mislav
Copy link
Owner

mislav commented Jun 11, 2018

In case of "upstream" remote, it takes precedence over "origin" remote (this was a highly requested feature). Pull requests are always created against the canonical ("main") version of this project, which is pointed to by "upstream" remote. Is it an option for you to swap the names of your remotes?

Also, you can try hub pull-request -b OWNER:master, where "OWNER" is the username/org name of the repo against which the PR should be opened on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants