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