Skip to content

Instantly share code, notes, and snippets.

@lotsofcode
Created April 13, 2012 10:56
Show Gist options
  • Select an option

  • Save lotsofcode/2375846 to your computer and use it in GitHub Desktop.

Select an option

Save lotsofcode/2375846 to your computer and use it in GitHub Desktop.
Useful git commands

Show commits different between (could be useful or generating a changelog)

git log origin/master..master --format="%h %s [%an]"

Essentially, this is a git log ..

Pretty log format

git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment