예제 #1
0
        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: "/");
        }
예제 #2
0
 public void ResetRemoteUrl()
 {
     ClonedRepository.Execute($"remote set-url origin {SharedRepository.DirectoryPath}");
 }