Patricio Treviño

Patricio Treviño

Husband . Father . Developer

Delete a remote git branch using the terminal

facebook sharing button
twitter sharing button
linkedin sharing button
reddit sharing button
digg sharing button
tumblr sharing button
whatsapp sharing button
email sharing button
print sharing button

Syntax

git push <remote> --delete <branch>
view raw syntax.text hosted with ❤ by GitHub

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
view raw example.sh hosted with ❤ by GitHub

References

git-branch