initialize repository with existing code