Good day.
I want to display all the names of commits of a specific repository in the console.
It turns out only to display the last name of the commit. I derive remotely. It makes no sense to clone them locally.
I use library LibGit2Sharp .
My method, which displays the last commit remotely:
public string GetHash(string url) { string s = Convert.ToString(url); var refer = Repository.ListRemoteReferences(s).FirstOrDefault() as SymbolicReference; return refer.Target.TargetIdentifier; }