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/master/Commands.md#git-delete-branch.
-
Delete a local and remote Git branch:
git delete-branch {{branch_name}}
-
Delete multiple local and remote Git branches:
git delete-branch {{branch_name1 branch_name2 ...}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.