# My Git Cheatsheet ## Show a diff of the last change made in a file in any commit ``` git log -p -n 1 ``` ## Show changes since last commit ``` git diff # for changes werent't added to index git diff --cached # for changes both added and not added to index git diff HEAD # for changes between current state and previous commit ```