GitSharp/Examples
From eqqon
(Difference between revisions)
(New page: === Using git commands === Initializing a new repository in the current directory (if GID_DIR environment variable is not set) {{code|Git.Commands.Init();}} Initializing a new repository i...) |
m (→Using git commands) |
||
Line 1: | Line 1: | ||
- | + | == Using git commands == | |
+ | === Init === | ||
Initializing a new repository in the current directory (if GID_DIR environment variable is not set) | Initializing a new repository in the current directory (if GID_DIR environment variable is not set) | ||
{{code|Git.Commands.Init();}} | {{code|Git.Commands.Init();}} |
Revision as of 20:54, 29 September 2009
Using git commands
Init
Initializing a new repository in the current directory (if GID_DIR environment variable is not set)
Git.Commands.Init();
Initializing a new repository in the specified location
Git.Commands.Init("path/to/repo");
Initializing a new repository with options
var cmd = new Git.InitCommand("path/to/repo") { Quiet=false, Bare=true };<br> cmd.Execute();