![](/img/trans.png)
[英]How to find the branch a git commit is on? (Using libgit2sharp)
[英]How to get the last commit from HEAD in a git repository using libGit2Sharp?
如何从当前头部获得最后一个提交?
我想我需要获取当前的Branch(repo.Head),然后是SHA1(如何?)然后使用SHA1查找提交(如何?)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.