Skip to content

Instantly share code, notes, and snippets.

View wodka's full-sized avatar

Michael Schramm wodka

  • Tucan.ai GmbH
  • Vienna
View GitHub Profile
merged_branches(){
local red=`tput setaf 1`
local green=`tput setaf 2`
local bold=`tput bold`
local reset=`tput sgr0`
local current_branch=$(git rev-parse --abbrev-ref HEAD)
for branch in $(git branch --merged | cut -c3-)
do
if [[ $branch = $current_branch ]]; then