Answers for "how to delete a branch git command"


cmd delete branch

git branch -d yourBranch # delete local branch
git push origin --delete yourBranch # delete branch on repo/push change
Posted by: Guest on August-19-2020

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 "how to delete a branch git command"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language