tj.git-extras/man/git-delete-squashed-branches.md
Edwin Kofler 52897f73b9
Add --proceed flag to git-delete-squashed-branches (#1134) (#1135)
Co-authored-by: Norbert Kiesel <nk@iname.com>
2024-02-20 10:47:36 +08:00

43 lines
1.2 KiB
Markdown

git-delete-squashed-branches(1) -- Delete branches that were squashed
=====================================================================
## SYNOPSIS
`git-delete-squashed-branches` [--proceed, -p] [&lt;branch-name&gt;]
## DESCRIPTION
Deletes all git branches that have been "squash-merged" into `branch-name`.
## 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)
&lt;branch-name&gt;
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.
## 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 &lt;<teddy.katz@gmail.com>&gt; and Vladimir Jimenez &lt;<me@allejo.io>&gt;
## REPORTING BUGS
&lt;<https://github.com/tj/git-extras/issues>&gt;
## SEE ALSO
&lt;<https://github.com/tj/git-extras>&gt;