Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by www.git-tower.com #
 
PREVIOUS NEXT
Tagged: #git #delete #branch
ADD COMMENT
Topic
Name
7+8 =