GIT-DELETE(1)

NAME
git-delete - Delete one or more branches locally and remotely

SYNOPSIS

git delete [-h] [-q] [-v] [--protected] [-n] target [target ...]

DESCRIPTION
Delete each branch specified together with its remote branch.

By default, branches named main, master and develop are protected, which means they cannot be deleted.

Using the --all/-a flag allows protected branches to be deleted.

It's also possible to change which branches are protected by setting the environment variable GITZ_PROTECTED_BRANCHES to a list of branches separated by colons, or to an empty string to turn off protection entirely.

OPTIONS
-h, --help: show this help message and exit -q, --quiet: Suppress all output -v, --verbose: Report all messages in great detail --protected: Delete all, even protected remotes or branches -n, --no-run: If set, commands will be printed but not executed target:

DANGER
Deletes remote branches!

EXAMPLES

git delete foo bar
    Delete the branches foo and bar locally and remotely