logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

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

Description

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

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

Name

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

Options

       --proceed, -p

       Proceed with the next branch even if the current branch cannot be deleted (e.g. because it is checked out
       in a worktree)

       <branch-name>

       The  target  branch were the "squashed-merged" branches were committed to. If no value is given, then the
       current checked out branch will be used.

Reporting Bugs

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

See Also

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

                                                  October 2024                   GIT-DELETE-SQUASHED-BRANCHES(1)

Synopsis

git-delete-squashed-branches [--proceed, -p] [<branch-name>]

See Also