Files
30-seconds-of-code/git/s/delete-branch.md
Angelos Chalaris 5c913d20bd Reorganize snippets
2023-05-03 21:19:02 +03:00

376 B

title, type, language, tags, cover, dateModified
title type language tags cover dateModified
Delete a branch snippet git
repository
branch
volcano-sunset 2021-04-13T21:10:59+03:00

Deletes a local branch.

  • Use git branch -d <branch> to delete the specified local <branch>.
git branch -d <branch>
git checkout master
git branch -d patch-1 # Deletes the `patch-1` local branch