Skip to content

Instantly share code, notes, and snippets.

@tmiller
Created September 26, 2012 13:18
Show Gist options
  • Save tmiller/3787980 to your computer and use it in GitHub Desktop.
Save tmiller/3787980 to your computer and use it in GitHub Desktop.
Get status of working tree
git status --porcelain | sort -u | sed -e 's/^.\(.\).*/\1/' -e 's/M/*/' -e 's/D/-/' -e 's/?/+/' | tr -d '\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment