![](/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.