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