how to remove a file from stage in git code example Example: remove frmo staging git git reset HEAD -- filename