Delete branch locally:
# If you're on the branch, first switch to another (e.g., master/main)
git checkout master or git checkout main
# Delete local branch
git branch -d branch_name # safe delete (won't delete if unmerged)
git branch -D branch_name # force delete (even if unmerged)
Delete branch from remote:
git push origin --delete branch_name
Thank you.
No comments:
Post a Comment