Shell/Bash: git branch delete local and remote Example
Shell/Bash Example: This is the "git branch delete local and remote" Example. compiled from many sources on the internet by SimpleTutorials.org
delete local branch
// delete branch locally git branch -d localBranchName //delete local branch that is unmerged git branch -D localBranchName // delete branch remotely git push origin --delete remoteBranchName
git remove branch
// delete branch locally git branch -d localBranchName // delete branch remotely git push origin --delete remoteBranchName // refresh branch list git fetch -p
git branch delete local and remote
// delete branch locally git branch -d localBranchName // delete branch remotely git push origin --delete remoteBranchName
delete local and remote branch github
$ git push:
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
* Summary: This "git branch delete local and remote" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!