Save commit rev to file