Skip to content

Instantly share code, notes, and snippets.

@ktomk
ktomk / git-bl.sh
Last active April 20, 2016 05:10
gitbl - git branch list : review all non master / develop branches, sortable-by-time
#!/bin/bash
git_list_branches()
{
git branch | awk -F ' +' '! /^\(no branch\)|master|develop$/ {print $2}' | sort
}
git_contains_branches()
{
git branch --contains "${1}" | awk -F ' +' '! /^\(no branch\)$/ {print $2}' | sort