how to check what chnges made 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>