git unpublish

Unpublish the current branch

Git alias:

unpublish = !"git push origin :$(git current-branch)"

Unpublish the current branch by deleting the remote version of the current branch.

Example:

git unpublish

Compare: