Files
30-seconds-of-code/snippets/delete-branch.md
2023-04-28 22:15:54 +03:00

362 B

title, type, tags, cover, dateModified
title type tags cover dateModified
Delete a branch snippet
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