Skip to content
nulltoken edited this page May 17, 2011 · 14 revisions

git-log

Show HEAD commit logs

Limits the number of commits to show

Git

$ git log -15

LibGit2Sharp

using (var repo = new Repository("path/to/your/repo"))
{
    foreach (var commit in repo.Commits.Take(15))
    {
        Console.WriteLine(commit.Id);   // Of course the output can be prettified ;-)
    }
}
Clone this wiki locally