how to see changes made in a file git code example Example: how to check git changes before commit git diff --staged