Thursday, 2 October 2014

Git delete branch

Delete local branch

git branch -d [branchname]


Delete remote branch

git push origin --delete [branchname]
or
git push origin :[branchname]

The second way is basically saying "push nothing to remote [branchname]"

No comments:

Post a Comment