foriequal0 / git-trim

Automatically trims your branches whose tracking remote refs are merged or stray
MIT License
492 stars 14 forks source link

Prevent dangling remotes by associating local and remote branches #144

Closed foriequal0 closed 4 years ago

foriequal0 commented 4 years ago

breaking change before

Branches that will remain:
  local branches:
    master
  remote references:
    origin/HEAD
    origin/master
    git@github.com:someone/fork, refs/heads/some-branch [merged, but: filtered]

Delete merged local branches:
  - some-branch
Confirm? [y/N]

after:

Branches that will remain:
  local branches:
    master
    some-branch [merged, but: filtered]
  remote references:
    origin/HEAD
    origin/master
    git@github.com:someone/fork, refs/heads/some-branch [merged, but: filtered]

You need to pass --delete merged or --delete merged:git@github.com:someone/fork to delete them.

resolve: #141