remove from git staging code example Example 1: git remove file from staging git rm --cached FILE.NAME Example 2: remove frmo staging git git reset HEAD -- filename