How to output git log with the first line only?
git log --pretty=oneline --abbrev-commit
How to see the changes in a Git commit?
git diff COMMIT~ COMMIT
How to undo local changes to a specific file
git checkout -- filename.txt
How to search for commit content
git rev-list --all | xargs git grep expression