how to delete a branch in github
$ git branch -d <local-branch>
$ git push origin --delete <remote-branch-name>
how to delete a branch in github
$ git branch -d <local-branch>
$ git push origin --delete <remote-branch-name>
delete branch github
# deletes the branch if it has already been fully merged in its upstream branch
$ git branch -d <branch_name>
# The -D option is an alias for --delete --force, which deletes the branch "irrespective of its merged status." [Source: man git-branch]
$ git branch -D <branch_name>
# Delete Remote Branch
# In most cases, <remote_name> will be origin
$ git push <remote_name> --delete <branch_name>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us