private void CreateDefaultFiles(string gitDir)
{
WriteFile(gitDir, "HEAD", "ref: refs/heads/master");
WriteFile(gitDir, "config",
"[core]",
"\trepositoryformatversion = 0",
"\tfilemode = false",
"\tbare = false",
"\tlogallrefupdates = true",
"\tsymlinks = false",
"\tignorecase = true");
WriteFile(gitDir, "description", "Unnamed repository; edit this file to name it for gitweb.");
WriteFile(Path.Combine(gitDir, "info"), "exclude",
"# git-ls-files --others --exclude-from=.git/info/exclude",
"# Lines that start with '#' are comments.",
"# For a project mostly in C, the following would be a good set of",
"# exclude patterns (uncomment them if you want to use them):",
"# *.[oa]",
"# *~");
}