Skip to content

Instantly share code, notes, and snippets.

@frantic
Created January 29, 2013 15:24
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 frantic/4665050 to your computer and use it in GitHub Desktop.
Save frantic/4665050 to your computer and use it in GitHub Desktop.
Git secrets I didn't know about
# Show inline diff
git diff HEAD^ --word-diff
# Turn on autocorrection ("comit" -> "commit")
git config --global help.autocorrect 1
# Ultimate blame
git blame -w -CCC
# Get a file from different branch/rev
git checkout REV -- path/to/file.txt
# Quck find&show commit by part of its message
git show :/fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment