Skip to content

Instantly share code, notes, and snippets.

View knovoselic's full-sized avatar

Kristijan Novoselić knovoselic

View GitHub Profile
#!/bin/bash
# by http://github.com/jehiah
# this prints out some branch status (similar to the '... ahead' info you get from git status)
# example:
# $ git branch-status
# dns_check (ahead 1) | (behind 112) origin/master
# master (ahead 2) | (behind 0) origin/master
TOTAL_DIFFERENCES=0