Skip to content

Useful scripts

Igor Velikorossov edited this page May 5, 2020 · 1 revision

Open the current repository in VS Code

Setting Value
Name Open in VS Code
Enabed true
Run in background true
Command cmd
Arguments /c "code ."
On event ShowInUserMenuBar

Remove all merged branches

Setting Value
Name Remove all merged
Enabed true
Command sh
Arguments -c "git for-each-ref refs/heads/ \"--format=%(refname:short)\" | while read branch; do mergeBase=$(git merge-base master $branch) && [[ $(git cherry master $(git commit-tree $(git rev-parse $branch\^{tree}) -p $mergeBase -m _)) == \"-\"* ]] && git branch -D $branch; done"
On event ShowInUserMenuBar
Clone this wiki locally