Skip to content

Latest commit

 

History

History

git-unpublish

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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: