git how to remove staged changes code example Example: remove frmo staging git git reset HEAD -- filename