remove main branch in git code example Example: Delete a Git Branch In Local And Remotely git push <remote_name> --delete <branch_name>