Delete git branch (local and remote)
September 22, 2022To delete the branch locally:
git branch -d branch_name
To delete the branch on the remote:
git push origin --delete <branch_name>
or git push origin :<branch_name> for older git
To delete the branch locally:
git branch -d branch_name
To delete the branch on the remote:
git push origin --delete <branch_name>
or git push origin :<branch_name> for older git