Menu

gitpiper

Delete a remote branch git Code Snippet in 2025

repositorybranchintermediate

Last Updated: 22 April 2025

Deletes a remote branch.

  • Use git push -d <remote> <branch> to delete the specified remote <branch> on the given <remote>.
git push -d <remote> <branch>
git checkout master git push -d origin patch-1 # Deletes the `patch-1` remote branch

git snippet similar to Delete a remote 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! ✌️