Skip to content

Instantly share code, notes, and snippets.

@mlabrum
Created December 19, 2011 23:13
Show Gist options
  • Save mlabrum/1499354 to your computer and use it in GitHub Desktop.
Save mlabrum/1499354 to your computer and use it in GitHub Desktop.
git outgoing
#!/bin/sh
# From: http://weblog.latte.ca/blake/employment/mozilla/thunderbird/gitOutgoing.html
git push --dry-run $1 2>&1 | awk '/^ / {print $1}' | xargs git log --graph --abbrev-commit --date=relative --pretty='format:%Cred%h%Creset - %s %Cgreen(%cr) %C(yellow)<%an>%C(reset)%C(white).'
@USSX-Hares
Copy link

Good one, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment