how to see the local changes in git code example Example 1: how to check git changes before commit git diff --staged Example 2: remove file from stage git git rm --cached <file>