Delete a remote git branch using the terminal
Syntax
git push <remote> --delete <branch> |
Option | Description |
---|---|
remote | The remote to be used. |
branch | The remote branch to be deleted. |
Example
# deletes remote branch "my-branch" | |
git -push origin --delete my-branch |