-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Pushing changes to a pull request URL? #821
Comments
Yes, you will probably not be able to use just
I know that this could be friendlier. Is the PR that you're checking out originating from the same repo or from a fork? If it's same-repo, then we could ensure that the local branch you're checking out to is the same name as the remote branch which is the head for the PR. Then, |
It's the same repo, ensuring that that the local branch is the same name as the remote branch would be an awesome improvement. |
Is there a way to hub checkout a PR url without changing the name of the branch? |
No, hub still auto-generates the name of the checked-out branch so this is still not push-friendly. I'll try to get this fixed for the next release so that same-repo PRs are easier to handle. |
Sorry for the "+1 comment", but this would be a very welcome addition. My usual workflow is something like: git push --tags --set-upstream origin branch On subsequent pushes, simply Checking out a PR with hub creates a branch in the form git push [org]-[branch]:[branch] Perhaps if |
@tlvince My idea for Let me know if that makes sense. |
Now that the GitHub default for PRs is to allow pushes from upstream maintainers I bet a lot more people than before now want “it just works” for pushes from |
Workaround for now:
With those settings a |
You can check out a PR using:
When you make a change and commit that change, what do you do to push it to the PR?
Because just doing "git push" gives a message like this:
fatal: The upstream branch of your current branch does not match
the name of your current branch. To push to the upstream branch
on the remote, use
To push to the branch of the same name on the remote, use
The text was updated successfully, but these errors were encountered: