git clean directory added in commit code example Example: how to clear git status git rm -r --cached .