GitSharp/Examples

From eqqon

(Difference between revisions)
Jump to: navigation, search
Henon (Talk | contribs)
(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...)
Newer edit →

Revision as of 20:53, 29 September 2009

Using git commands

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();