how to remove items from git staging area code example Example: how to remove all files from staging area git git rm --cached -r .