added clear function, also discovered git diff --cached