remove directory from staging git code example Example: remove frmo staging git git reset HEAD -- filename