Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 590 Bytes

index.md

File metadata and controls

31 lines (20 loc) · 590 Bytes

git unpublish

Unpublish the current branch

Git alias:

unpublish = "!f() { git push ${1:-origin} :$(git current-branch); }; f"

Unpublish the current branch by deleting the remote version of the current branch. The remote name may be specified by the first argument and defaults to origin.

Example:

# unpublish on origin
git unpublish

# unpublish branch on fork
git unpublish fork

Compare: