initialize a repository