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

Branch not deleted when checked out #77

Closed seachicken closed 2 years ago

seachicken commented 2 years ago

Describe the bug To Reproduce:

  1. Create any PR
  2. Squash and merge PR
  3. gh poi
  4. Can't delete PR branch in local

Your Environment

seachicken commented 2 years ago

Checking out a non-PR branch can delete it.

seachicken commented 2 years ago

Cannot delete when there are uncommitted changes.

git status --short
 ? test/fixtures/spring-boot-realworld-example-app

But untracked files can be switched to the default branch, so it looks like the branch can be deleted https://git-scm.com/docs/git-status#_short_format