Flags available for the git branch command.
git branch
These flags allow listing, deleting, renaming, and inspecting branches.
-d
-D
-m
-M
--list
--show-current
Git.branch
Flags available for the
git branch
command.These flags allow listing, deleting, renaming, and inspecting branches.
-d
: Deletes a branch (safe, only if fully merged).-D
: Deletes a branch forcefully (even if not merged).-m
: Renames a branch.-M
: Forcefully renames a branch (even if target exists).--list
: Lists all branches.--show-current
: Shows the name of the current branch.