Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Develop #140

Open
wants to merge 4 commits into from

3 participants

@shukydvir

Hi,

I've added the option to delete the remote branch if the user created it.

If you want you can pull.

@boryn

I find this patch very useful! I was about to create an issue about this :) And here it is ready :) We always stay with unused feature branches on the origin and have to remove them manually.

@fspreng

Thanks for your contribution @shukydvir and @boryn. It seems that the original repo by nvie is no longer maintained. However, the ITM Gitflow fork provides this possibility. Maybe you feel more comfortable with this fork. Looking forward to your response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 18, 2011
  1. adding the delete of remote branch

    Shuky Dvir authored
Commits on Jul 19, 2011
  1. fixing the variable name

    Shuky Dvir authored
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 0 deletions.
  1. +4 −0 git-flow-feature
  2. +4 −0 git-flow-hotfix
  3. +4 −0 git-flow-release
View
4 git-flow-feature
@@ -347,6 +347,10 @@ helper_finish_cleanup() {
if noflag keep; then
git branch -d "$BRANCH"
+ CHECK_REMOTE=$(git branch -r | grep "$ORIGIN"/"$BRANCH" | wc -l)
+ if [ $CHECK_REMOTE = 1 ]; then
+ git push "$ORIGIN" :"$BRANCH"
+ fi
fi
echo
View
4 git-flow-hotfix
@@ -263,6 +263,10 @@ cmd_finish() {
# delete branch
if noflag keep; then
git branch -d "$BRANCH"
+ CHECK_REMOTE=$(git branch -r | grep "$ORIGIN"/"$BRANCH" | wc -l)
+ if [ $CHECK_REMOTE = 1 ]; then
+ git push "$ORIGIN" :"$BRANCH"
+ fi
fi
if flag push; then
View
4 git-flow-release
@@ -264,6 +264,10 @@ cmd_finish() {
git checkout "$MASTER_BRANCH"
fi
git branch -d "$BRANCH"
+ CHECK_REMOTE=$(git branch -r | grep "$ORIGIN"/"$BRANCH" | wc -l)
+ if [ $CHECK_REMOTE = 1 ]; then
+ git push "$ORIGIN" :"$BRANCH"
+ fi
fi
if flag push; then
Something went wrong with that request. Please try again.