Do you know how to programmatically get Git commits?
Last updated by Jake Bayliss over 2 years 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.
Love it
0
Agree
0
Disagree
0
No way
0