/// <summary> /// Initialize a repo. eg. "git init" /// </summary> public string InitializeRepository() { Hd = new Storage(); Remotes = new RemotesHandling(Hd.Remotes); Branches = new BranchHandling(Hd, CodeFolder); Branches.CreateBranch("master", null); return("Initialized empty Git repository"); }
public void LoadState() { if (File.Exists(GitStateFile)) { Hd = ByteHelper.Deserialize <Storage>(File.ReadAllBytes(GitStateFile)); Remotes = new RemotesHandling(Hd.Remotes); Branches = new BranchHandling(Hd, CodeFolder); } }