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