remove the changes from both the staging area and the working directory by using git reset code example Example: how to remove all files from staging area git git rm --cached -r .