Skip to content
Mendel Monteiro-Beckerman edited this page Jul 1, 2019 · 2 revisions

git-ls-tree

Get tree items

Git

$ git ls-tree commit

LibGit2Sharp

using (var repo = new Repository("path/to/your/repo"))
{
    var tree = repo.Lookup<Tree>(id);
    foreach(var item in tree)
        Console.WriteLine(item.Name);
}
Clone this wiki locally