Menu

gitpiper

Delete a branch git Code Snippet in 2025

repositorybranchintermediate

Last Updated: 21 April 2025

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

git snippet similar to Delete a branch For You in April 2025

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2025 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️