add totalcommits bash function