init repo from existing code