コード例 #1
0
 /// <summary>
 /// Set global git config useHttpPath for CSR host.
 /// Refer to https://git-scm.com/docs/gitcredentials
 /// </summary>
 public static Task SetUseHttpPathAsync() =>
 GitRepository.RunGitCommandAsync(
     $"config --global credential.{CsrUrlAuthority}.useHttpPath true",
     Directory.GetCurrentDirectory());