Do you know how to programmatically get Git commits?
Last updated by Brady Stroud [SSW] 8 months ago.See historyUsing the Azure DevOps API you can programmatically get a list of commits from your repository with only a HTTP request.
Using HTTPS with basic authentication, make a GET request to a URL as below, substituting in your project details. A JSON object will be returned. To quickly create classes from a JSON response, see the rule Do you know how to easily get classes from a JSON response?
For a C# implementation, see this blog post Getting Git Commits with the VSO REST API.