public void AddFile(string path) { using (var repo = new LibGit2Sharp.Repository(RepositoryPath)) { repo.Stage(path); } }