HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git delete-branch — Delete local and remote Git branches. Part of `git-extras`. If deleting the checked out branch, only

Submitted by: @import:tldr-pages··
0
Viewed 0 times
deletecommandlocalgit delete-branchandcliremotegit

Problem

How to use the git delete-branch command: Delete local and remote Git branches. Part of git-extras. If deleting the checked out branch, only the remote branch will be deleted. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-delete-branch>.

Solution

git delete-branch — Delete local and remote Git branches. Part of git-extras. If deleting the checked out branch, only the remote branch will be deleted. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-delete-branch>.

Delete one or more local and remote Git branches:
git delete-branch {{branch_name1 branch_name2 ...}}

Code Snippets

Delete one or more local and remote Git branches

git delete-branch {{branch_name1 branch_name2 ...}}

Context

tldr-pages: common/git delete-branch

Revisions (0)

No revisions yet.