GitSharp/Examples

From eqqon

< GitSharp
Revision as of 06:57, 30 September 2009 by Henon (Talk | contribs)
Jump to: navigation, search

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 };
cmd.Execute();