Answers for "remove branch in git"

20

git how to delete origin branch

$ git push origin --delete feature/login
Posted by: Guest on February-17-2020
37

git delete branch

## git version 2.25.1

## Deleting local branches
git branch -d localBranchName
## Deleting remote branches
git push origin --delete remoteBranchName

## Deleting both a local and a remote branch
## They are completely separate objects in Git. But
git branch -d localBranchName && git push origin --delete remoteBranchName
Posted by: Guest on June-28-2020
15

delete remote git branch

git push --delete remoteName branchName
Posted by: Guest on March-14-2020
2

remove branch local git

$ git branch -d branch_name
$ git branch -D branch_name
Posted by: Guest on December-13-2020
0

git delete branch

$ git branch -d <branchname>
Posted by: Guest on June-21-2021
-1

How to Delete Local/Remote Git Branches

$ git branch -a

# *master
# b1
# remote/origin/master
# remote/origin/b1

$ git push origin --delete b1
# [...]
# - [deleted] b1
Posted by: Guest on August-21-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language