Skip to content

Instantly share code, notes, and snippets.

View vivek-bala's full-sized avatar

Vivekanandan (Vivek) Balasubramanian vivek-bala

View GitHub Profile
#!/bin/bash
# edited by andre@merzky.net
# original at https://gist.github.com/Mark-Booth/5058384
# forked from https://gist.github.com/lth2h/4177524 @ ae184f1 by mark.booth
# forked from https://gist.github.com/jehiah/1288596 @ e357c1e by lth2h
# ideas from https://github.com/kortina/bakpak/blob/master/bin/git-branches-vs-origin-master
# this prints out some branch status
# (similar to the '... ahead' info you get from git status)