Home  »  Git   »   Git – Delete Both Local and Remote Branch

Git – Delete Both Local and Remote Branch

By | September 30, 2016

Deleting branches in Git is something done frequently, especially in GitFlow. Here are commands to delete local and remote branches.

Remove a local branch from your machine

git branch -d {the_local_branch_name}

(use -D instead to force deletion, without checking merged status)

Remove a remote branch from the server

git push origin --delete {the_remote_branch_name}




4.5

Leave a Reply

Your email address will not be published.