Search⌘ K
AI Features

Delete a Remote Branch

Understand how to delete a remote Git branch using the git push command. Learn the syntax for specifying remote and local branch names, including renaming when pushing. Gain practical knowledge to manage remote repositories and collaborate effectively by removing outdated branches.

Deletion using the git push command

We can delete a remote branch named new_branch using a git push command as in the example given below:

$ git push origin :new_branch
...