Files
30-seconds-of-code/snippets/delete-branch.md
Isabelle Viktoria Maciohsek ee28929328 Make expertise a field
2022-03-01 20:23:46 +02:00

384 B

title, tags, expertise, firstSeen, lastUpdated
title tags expertise firstSeen lastUpdated
Delete a branch repository,branch intermediate 2021-04-04T21:50:29+03:00 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