Initialize repo.
Work for standalone situation