Skip to content

Files

Latest commit

8e02627 · Aug 24, 2024

History

History

git-unpublish

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 21, 2022
Aug 24, 2024

README.md

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: