Answers for "remove reomte branch git"

1

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.
Posted by: Guest on February-02-2022
0

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>
Posted by: Guest on April-14-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language