This article is a mirror article of machine translation, please click here to jump to the original article.

View: 1|Reply: 0

[Tips] .NET/C# View Git repository commit records based on LibGit2Sharp

[Copy link]
Posted on5 seconds ago | | | |
Requirements: .NET/C# Call libgit2 to operate on the git repository, meaning code is automated through programming without installing any git tools on a computer.

libgit2

libgit2 is a portable, pure C-language Git method library that provides a linkable API that allows you to integrate Git functionality into your application. Bindings in languages such as Rugged (Ruby), LibGit2Sharp (.NET), pygit2 (Python), and NodeGit (Node) allow you to build Git tools in your preferred language.

Address:The hyperlink login is visible.

LibGit2Sharp

LibGit2Sharp brings the powerful features and speed of libgit2 (native Git implementation) to a .NET hosting environment.

Source:The hyperlink login is visible.
Documentation:The hyperlink login is visible.

Check the last 10 submission records

To query the last 10 commit records of a remote git repository, Nuget quotes the following:
The code is as follows:
As shown below:





Previous:Create a new SQL Server connection server and operate across servers
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com