fixed commit errors

was trying to commit all files regardless or modifications