1. git-delete-squashed-branches(1)
  2. Git Extras
  3. git-delete-squashed-branches(1)

NAME

git-delete-squashed-branches - Delete branches that were squashed

SYNOPSIS

git-delete-squashed-branches [<target-branch>]

DESCRIPTION

Deletes all git branches that have been "squash-merged" into target-branch.

OPTIONS

<target-branch>

The target branch were the "squashed-merged" branches were committed to.

EXAMPLES

Delete all branches that were "squash-merged" into the current checked out branch.

$ git delete-squashed-branches

Delete all branches that were "squash-merged" into the main branch. This will checkout the target branch and leave you on said branch after the command has completed.

$ git delete-squashed-branches main

AUTHOR

Written by Teddy Katz <teddy.katz@gmail.com> and Vladimir Jimenez <me@allejo.io>

REPORTING BUGS

<https://github.com/tj/git-extras/issues>

SEE ALSO

<https://github.com/tj/git-extras>

  1. May 2021
  2. git-delete-squashed-branches(1)