Skip to content

Instantly share code, notes, and snippets.

@dominicmartineau
Created May 9, 2013 18:31
Show Gist options
  • Save dominicmartineau/5549504 to your computer and use it in GitHub Desktop.
Save dominicmartineau/5549504 to your computer and use it in GitHub Desktop.
Git equivalent to 'hg out'. Put this into '/usr/local/bin/git-out' and then run 'git out' into your project folder.
#!/bin/sh
CURRENTBRANCH=$(git branch | grep "*" | sed "s/* //")
echo "Outgoing commits for branch "$CURRENTBRANCH
git log origin/$CURRENTBRANCH..$CURRENTBRANCH --name-status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment