DEV Community

Discussion on: Git and GitHub for beginners

Collapse
 
ac000 profile image
Andrew Clayton
git push origin --delete branchname
Enter fullscreen mode Exit fullscreen mode

can be shortened to

git push origin :branchname
Enter fullscreen mode Exit fullscreen mode

Note the :. This command says push nothing up to branchname and delete it.