how to check on a file you modified in git code example Example: how to check git changes before commit git diff --staged