[Hooks] Create a version from a manual commit if it did not exist yet.