seachicken / gh-poi

✨ Safely clean up your local branches
https://dev.to/seachicken/safely-clean-up-your-local-branches-9i3
MIT License
673 stars 19 forks source link

Delete checked out PR branches #25

Closed msfjarvis closed 2 years ago

msfjarvis commented 2 years ago

Description When a PR branch is currently checked out, gh-poi will not delete the branch. A way to fix this would be to checkout the default branch and then delete the branch.

Additional context

hub-sync implemented this same functionality and the way I described above is how this tool dealt with the problem.

seachicken commented 2 years ago

Thanks for the suggestion 😄 Being able to delete merged branches even if they are checked out seems like a good idea as it will make development smoother. I'll refer to hub-sync and see if there are any issues.

seachicken commented 2 years ago

Here's what I'm thinking:

msfjarvis commented 2 years ago

Sounds good 👍🏼