Git Delete Branch

# 1. Delete local branch
git branch -d your-branch  # -d: Safe option that will only delete the branch if it has already been merged.
# Or
git branch -D your-branch  # -D:  Force option.

# 2. Push to remote
git push origin --delete your-branch
posted @ 2023-04-16 10:52  shendawei  阅读(26)  评论(0编辑  收藏  举报