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