git changes remove. code example Example 1: git delete changes git clean -df git checkout -- . Example 2: remove changes file git command git checkout -- <file>