Git

api-version = 1.0

Use these APIs to work with a Team Foundation managed Git repository. The repository contains two types of items - blobs (files) and trees (folders) and other resources that represent the history of those items, or act on their state.

Git resources

Common tasks

Get, add, and delete team repositories

Get recent changes

  1. Get the top commits, or the commits in a date range.
  2. Get each commit with the changes in that commit.
  3. You can also get the differences between the commited version and the previous version.

See who pushed the commits to the team repository

  1. Get a list of pushes.
  2. Get each push with references to the commits.

Download a file

Get item metadata

For more information on Git, see Use Git with Visual Studio and Team Foundation Server.