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.

Common tasks
Get, add, and delete team repositories
- Get a list of repositories in a team project.
- Add a repository to a team project.
- Delete a repository from a team project.
Get recent changes
- Get the top commits, or the commits in a date range.
- Get each commit with the changes in that commit.
- You can also get the differences between the commited version and the previous version.
See who pushed the commits to the team repository
- Get a list of pushes.
- Get each push with references to the commits.
Download a file
- Download a single source file by getting the item representing that file.
- Download a zip file containing a folder and its contents by getting the item for that folder.
Get item metadata
- Get the metadata for the most recent version of each file or folder by getting the items recursively.
- You can get different versions of the items, too.
For more information on Git, see Use Git with Visual Studio and Team Foundation Server.