Delete git branch (local and remote)
April 4, 2023To 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