GitHub Git
Manage Git commits, branches, tags, and version control operations
Requirements
The GitHub Git API provides comprehensive access to Git data structures stored in GitHub repositories, enabling programmatic management of commits, branches, tags, trees, and blobs. This integration supports complete gitflow workflows including branch creation, commit history analysis, release tagging, and repository state management.
Key capabilities:
- Create and retrieve commits with full metadata
- Manage Git references (branches and tags)
- Handle tree and blob objects for file management
- Support semantic versioning and release tagging
- Enable automated gitflow workflows
- Analyze commit history and authorship
- Manage branch hierarchies and merge operations
Includes:
- POST /repos/{owner}/{repo}/git/commits - Create commits
- GET /repos/{owner}/{repo}/git/commits - List commits
- GET /repos/{owner}/{repo}/git/commits/{sha} - Get commit details
- POST /repos/{owner}/{repo}/git/trees - Create tree objects
- GET /repos/{owner}/{repo}/git/trees/{tree_sha} - Get tree contents
- POST /repos/{owner}/{repo}/git/blobs - Create blob objects
- GET /repos/{owner}/{repo}/git/blobs/{file_sha} - Get blob content
- POST /repos/{owner}/{repo}/git/tags - Create annotated tags
- GET /repos/{owner}/{repo}/git/tags/{tag} - Get tag details
- GET /repos/{owner}/{repo}/git/refs - List references
- POST /repos/{owner}/{repo}/git/refs - Create references
- GET /repos/{owner}/{repo}/git/refs/{ref} - Get reference details
- PATCH /repos/{owner}/{repo}/git/refs/{ref} - Update references
- DELETE /repos/{owner}/{repo}/git/refs/{ref} - Delete references