Skip to content

Commit

Permalink
feat(aliases): unpublish branch from the remote
Browse files Browse the repository at this point in the history
  • Loading branch information
jlegrone committed Oct 21, 2017
1 parent cb895af commit baab5a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,13 @@ $ git edit 27395436382cd897fd957635bd42cf78788f11b1

#### `git publish`

Push the current branch to the remote "origin", and set it to track the upstream branch.
Push the current branch to the remote `origin`, and set it to track the upstream branch.

<hr>

#### `git unpublish`

Remove the current branch from the remote `origin`.

<hr>

Expand Down
4 changes: 4 additions & 0 deletions src/jlegrone.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
# Usage: git publish
publish = "!git push -u origin $(git branch-name)"

# Remove the current branch from the remote
# Usage: git unpublish
unpublish = "!git push origin :$(git branch-name)"

# "Safer" force push -- see http://weiqingtoh.github.io/force-with-lease/
# Usage: git pushf
pushf = push --force-with-lease
Expand Down

0 comments on commit baab5a5

Please sign in to comment.