public void Create() { var shared = new DirectoryInfo(SharedRepository.DirectoryPath); shared.Create(); SharedRepository.Execute($"init --bare --shared {SharedRepository.DirectoryPath}"); ClonedRepository.Execute($"clone {SharedRepository.DirectoryPath} {ClonedRepository.DirectoryPath}", working_dir: "/"); }
public void ResetRemoteUrl() { ClonedRepository.Execute($"remote set-url origin {SharedRepository.DirectoryPath}"); }