Git

Raw Git functionality.

Operations

Example

Get a blob, with the TypeScript SDK:

ts
import { GitHubV3REST } from "github";

const client = new GitHubV3REST({
  baseUrl: "https://api.github.com",
});

const result = await client.git.getBlob({
  owner: "owner",
  repo: "repo",
  fileSha: "fileSha",
});
console.log(result);
Nine more languages

The same call exists in every SDK. See SDKs for the other nine.