Delete a local and a remote GIT branch Delete a Local GIT branch. To delete the local GIT branch we can try one of the following commands: git branch -d branch_name. ... Delete a remote GIT branch. To delete a remote branch you can use the following command: git push <remote_name> --delete <branch_name> ... Push to remote branch and delete
- git branch -d branch_name
- git branch -D branch_name