How to delete a Git branch both locally and remotely

1) Delete remote branch, in most cases the remote name is origin

git push --delete <remote_name> <branch_name>
or
git push <remote_name> --delete <branch_name>

2) Delete local branch

git branch -d <branch_name>
Last modified: le 2018/09/30 11:42