Remove branches when their remote was removed
This commit is contained in:
parent
b34e56726e
commit
636c820a0d
1 changed files with 3 additions and 0 deletions
|
@ -23,3 +23,6 @@ for branch in $(git branch --merged | grep -v '^*'); do
|
||||||
git branch -d ${branch}
|
git branch -d ${branch}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
step "Removing local branches where remote branch is gone..."
|
||||||
|
git branch -vv | awk '/: gone]/{print $1}' | xargs -r git branch -D
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue