Skip to content

Commit

Permalink
Its good idea to unset upstream after deleting remote tracked branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoziol committed Apr 15, 2016
1 parent fda8bec commit 3734784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
# Pushes the current branch to the remote "origin" (or the remote passed as the parameter) and set it to track the upstream branch
publish = "!sh -c 'git push -u ${1:-origin} $(git branch-name)' -"
# Deletes the remote version of the current branch from the remote "origin" (or the remote passed as the parameter)
unpublish = "!sh -c 'git push ${1:-origin} :$(git branch-name)' -"
unpublish = "!sh -c 'git push ${1:-origin} :$(git branch-name);git branch --unset-upstream $(git branch-name)' -"

# Fetch PR from GitHub by number/id
fetchpr = "!sh -c 'git fetch origin pull/$0/head:pr/$0'"
Expand Down

0 comments on commit 3734784

Please sign in to comment.