Files
30-seconds-of-code/snippets/delete-branch.md
Angelos Chalaris 1397bb792e Deprecate expertise
2022-12-04 22:23:55 +02:00

412 B

title, tags, author, cover, firstSeen, lastUpdated
title tags author cover firstSeen lastUpdated
Delete a branch repository,branch maciv blog_images/volcano-sunset.jpg 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