Delete local branches except dev, master
git branch | grep -v -e dev -e master | xargs git branch -D
Delete remote branches except dev, master
git branch -r | grep -v -e dev -e master | cut -c 10- | xargs git push --delete origin
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
Delete local branches except dev, master
git branch | grep -v -e dev -e master | xargs git branch -D
Delete remote branches except dev, master
git branch -r | grep -v -e dev -e master | cut -c 10- | xargs git push --delete origin