re-implementation of git cms-init