298 B
298 B
title, tags
| title | tags |
|---|---|
| Delete a branch | repository,branch,beginner |
Deletes a local branch.
- Use
git branch -d <branch>to delete the branch with the specified branch name.
git branch -d <branch>
git checkout master
git branch -d patch-1 # Deletes the `patch-1` local branch