Skip to content

Instantly share code, notes, and snippets.

Avatar

Kristijan Novoselić knovoselic

View GitHub Profile
View git-branch-status
#!/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