| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
$ git init /d/temp/rooted/path Initialized empty Git repository in d:/temp/rooted/path/.git/
string rootedPath = Repository.Init(@"D:\temp\rooted\path");
Console.WriteLine(rootedPath); // "D:\temp\rooted\path\.git\\"$ git init --bare /d/temp/rooted/path Initialized empty Git repository in d:/temp/rooted/path/
string rootedPath = Repository.Init(@"D:\temp\rooted\path", true);
Console.WriteLine(rootedPath); // "D:\temp\rooted\path\\"The relative path will be combined with the current working directory into an absolute path. Current working directory for the following code samples is "D:\Temp\".
$ git init relative/path Initialized empty Git repository in d:/temp/relative/path/.git/
string rootedPath = Repository.Init(@"relative\path");
Console.WriteLine(rootedPath); // "D:\temp\relative\path\.git\\"$ git init --bare relative/path Initialized empty Git repository in d:/temp/relative/path/
string rootedPath = Repository.Init(@"relative\path", true);
Console.WriteLine(rootedPath); // "D:\temp\relative\path\\"| Back | FazBrowse Home | New Git URL |