Answers for "how to delete a branch in git terminal"

20

git how to delete origin branch

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

delete branch git

//delete locally
git branch -d branch_name

//delete remotely
//git push <remote_name> :<branch_name>
// ex. git push origin :serverfix
Posted by: Guest on May-25-2020
3

delete branch git

// delete branch locally
git branch -D localBranchName

// delete branch remotely
git push
Posted by: Guest on August-12-2020
-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