Skip to content

Instantly share code, notes, and snippets.

@fredrikhl
fredrikhl / git-branch-status
Last active August 29, 2015 14:01 — forked from jehiah/git-branch-status
git branch-status command
#!/bin/bash
#
# From: http://github.com/jehiah
#
# Usage: Run `git-branch-status.sh' in a git repository
# OR `git branch-status' if the script is in your ${PATH}
#
git for-each-ref --format="%(refname:short) %(upstream:short)" refs/heads | \
while read local remote
do