How to delete a Git branch locally and remotely
$ git push -d <remote_name> <branchname>
$ git branch -d <branchname>
// In most cases, <remote_name> will be origin.
How to delete a Git branch locally and remotely
$ git push -d <remote_name> <branchname>
$ git branch -d <branchname>
// In most cases, <remote_name> will be origin.
delete branch
# deleting a local branch
$ git branch -d <branch_name>
$ git branch -D <branch_name> # forced
# deleting a remote branch
$ 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