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

git pr push only works on checked out branch #7

Open
rkdarst opened this issue Jul 18, 2018 · 1 comment
Open

git pr push only works on checked out branch #7

rkdarst opened this issue Jul 18, 2018 · 1 comment

Comments

@rkdarst
Copy link
Member

rkdarst commented Jul 18, 2018

I tried git pr push non_checked_out_branch_name and it pushed the current HEAD to that name. Is this expected? Should this be changed to first look for branch with that name?

@bast
Copy link
Member

bast commented Sep 3, 2020

I think this is surprising. If the branch does not exist, I think it should stop and complain. Otherwise this might happen: git pr push sometypo and something else gets pushed.

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