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