public static Init ( bool bare, bool shared ) : string | ||
bare | bool | |
shared | bool | |
return | string |
public static string Init(bool bare, bool shared)
{
if (bare && shared)
return RunCmd(Settings.GitCommand, "init --bare --shared=all");
if (bare)
return RunCmd(Settings.GitCommand, "init --bare");
return RunCmd(Settings.GitCommand, "init");
}