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
pr checkout fails if the author had force-pushed commits #2061
Comments
One idea here is to introduce a new command: |
Thanks for writing in! I'm leaning to having |
My 2 cents. |
Yeah, the commits would be lost (or very hard to find). It would be surprising if something like |
I've been using |
A force flag as in |
Consider this work flow:
hub pr checkout 123
hub pr checkout 123
againAt this point, since I already had the branch checked out,
hub
tries to fast forward my branch. This fails because there are conflicts.I would love to have a flag like
--force
or--recreate-branch
that deletes and recreates the branch for me. Since I am only reviewing the patch, there is no harm in deleting the branch.The text was updated successfully, but these errors were encountered: