Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
5 of 6
added 5 characters in body
willeM_ Van Onsem
  • 463.7k
  • 32
  • 455
  • 587

This is simple: Just run the following command:

To delete a Git branch both locally and remotely, first delete the local branch using command:

git branch -d example

(here example is the branch name)

And after that delete remote branch using command:

git push origin :example
Syeful Islam
  • 3.8k
  • 1
  • 20
  • 20