You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <returns>The path to the created repository.</returns>
483
483
publicstaticstringInit(stringpath)
484
484
{
485
-
returnInit(path,false);
485
+
returnInit(path,false,newInitOptions());
486
+
}
487
+
488
+
/// <summary>
489
+
/// Initialize a repository at the specified <paramref name="path"/>.
490
+
/// </summary>
491
+
/// <param name="path">The path to the working folder when initializing a standard ".git" repository. Otherwise, when initializing a bare repository, the path to the expected location of this later.</param>
492
+
/// <param name="isBare">true to initialize a bare repository. False otherwise, to initialize a standard ".git" repository.</param>
493
+
/// <returns>The path to the created repository.</returns>
494
+
publicstaticstringInit(stringpath,boolisBare)
495
+
{
496
+
returnInit(path,isBare,newInitOptions());
497
+
}
498
+
499
+
500
+
/// <summary>
501
+
/// Initialize a repository by explictly setting the path to both the working directory and the git directory.
502
+
/// </summary>
503
+
/// <param name="workingDirectoryPath">The path to the working directory.</param>
504
+
/// <param name="gitDirectoryPath">The path to the git repository to be created.</param>
505
+
/// <returns>The path to the created repository.</returns>
0 commit comments