Skip to content

Instantly share code, notes, and snippets.

@Kimtaro
Created April 19, 2012 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kimtaro/2419024 to your computer and use it in GitHub Desktop.
Save Kimtaro/2419024 to your computer and use it in GitHub Desktop.
Nifty git commands
# List all branches in order of last commit time
git for-each-ref --sort=-committerdate refs/heads/
# List all commits that changed test/test_helper.rb
git log -p --all test/test_helper.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment