HTTP/2 302
server: nginx
date: Wed, 03 Sep 2025 18:45:14 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20161114184600
location: https://web.archive.org/web/20161114184600/https://developer.github.com/v3/git/
server-timing: captures_list;dur=0.844363, exclusion.robots;dur=0.029204, exclusion.robots.policy;dur=0.014156, esindex;dur=0.014918, cdx.remote;dur=164.916275, LoadShardBlock;dur=291.273460, PetaboxLoader3.datanode;dur=218.771689
x-app-server: wwwb-app212
x-ts: 302
x-tr: 506
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app212; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 03 Sep 2025 18:45:15 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: GitHub.com
x-archive-orig-last-modified: Mon, 14 Nov 2016 05:40:40 GMT
x-archive-orig-access-control-allow-origin: *
x-archive-orig-expires: Mon, 14 Nov 2016 18:56:00 GMT
x-archive-orig-cache-control: max-age=600
x-archive-orig-x-github-request-id: 17EB2F30:6309:3852D4E:582A0668
x-archive-orig-content-length: 28919
x-archive-orig-accept-ranges: bytes
x-archive-orig-date: Mon, 14 Nov 2016 18:46:00 GMT
x-archive-orig-via: 1.1 varnish
x-archive-orig-age: 0
x-archive-orig-connection: close
x-archive-orig-x-served-by: cache-sjc3625-SJC
x-archive-orig-x-cache: MISS
x-archive-orig-x-cache-hits: 0
x-archive-orig-x-timer: S1479149160.903163,VS0,VE78
x-archive-orig-vary: Accept-Encoding
x-archive-orig-x-fastly-request-id: dff9dad4e31a6e6ba439e6bfdfc47daed7710e5f
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 14 Nov 2016 18:46:00 GMT
link:
; rel="original",
; rel="timemap"; type="application/link-format",
; rel="timegate",
; rel="first memento"; datetime="Thu, 23 Jun 2011 02:03:21 GMT",
; rel="prev memento"; datetime="Wed, 12 Oct 2016 04:28:51 GMT",
; rel="memento"; datetime="Mon, 14 Nov 2016 18:46:00 GMT",
; rel="next memento"; datetime="Tue, 15 Nov 2016 03:52:33 GMT",
; rel="last memento"; datetime="Sat, 26 Jul 2025 15:17:02 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: ARCHIVEIT-771-QUARTERLY-JOB248887-20161114-00001/ARCHIVEIT-771-QUARTERLY-JOB248887-20161114184331856-00016.warc.gz
server-timing: captures_list;dur=0.775861, exclusion.robots;dur=0.039825, exclusion.robots.policy;dur=0.017621, esindex;dur=0.013338, cdx.remote;dur=69.468070, LoadShardBlock;dur=543.076742, PetaboxLoader3.datanode;dur=348.382803, PetaboxLoader3.resolve;dur=519.613462, load_resource;dur=478.909191
x-app-server: wwwb-app212
x-ts: 200
x-tr: 1215
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Git Data | GitHub Developer Guide
Navigate the docs…
API Overview
Media Types
OAuth
OAuth Authorizations API
Other Authentication Methods
Troubleshooting
Pre-release Program
API Previews
Versions
Activity overview
Events
Event Types & Payloads
Feeds
Notifications
Starring
Watching
Gists overview
Comments
Git Data overview
Blobs
Commits
References
Tags
Trees
Integrations
Installations
Issues overview
Assignees
Comments
Events
Labels
Milestones
Timeline
Migration overview
Migrations
Source Imports
Miscellaneous overview
Emojis
Gitignore
Licenses
Markdown
Meta
Rate Limit
Organizations overview
Members
Teams
Webhooks
Projects overview
Cards
Columns
Pull Requests overview
Review Comments
Reactions overview
Commit Comment
Issue
Issue Comment
Pull Request Review Comment
Repositories overview
Branches
Collaborators
Comments
Commits
Contents
Deploy Keys
Deployments
Downloads
Forks
Invitations
Merging
Pages
Releases
Statistics
Statuses
Traffic
Webhooks
Search overview
Repositories
Code
Issues
Users
Legacy Search
Users overview
Emails
Followers
Git SSH Keys
GPG Keys
Administration (Enterprise)
Enterprise overview
Admin Stats
LDAP
License
Management Console
Pre-receive Environments
Pre-receive Hooks
Search Indexing
Organization Administration
Git Data
The Git Database API gives you access to read and write raw Git objects
to your Git database on GitHub and to list and update your references
(branch heads and tags).
This basically allows you to reimplement a lot of Git functionality over
our API - by creating raw objects directly into the database and updating
branch references you could technically do just about anything that Git
can do without having Git installed.
Git DB API functions will return a 409 Conflict
if the git repository for a Repository is empty
or unavailable. This typically means it is being created still. Contact
Support if this response status persists.
For more information on the Git object database, please read the
Git Internals chapter of
the Pro Git book.
As an example, if you wanted to commit a change to a file in your
repository, you would:
get the current commit object
retrieve the tree it points to
retrieve the content of the blob object that tree has for that particular file path
change the content somehow and post a new blob object with that new content, getting a blob SHA back
post a new tree object with that file path pointer replaced with your new blob SHA getting a tree SHA back
create a new commit object with the current commit SHA as the parent and the new tree SHA, getting a commit SHA back
update the reference of your branch to point to the new commit SHA
It might seem complex, but it's actually pretty simple when you understand
the model and it opens up a ton of things you could potentially do with the API.
Navigate the docs…
API Overview
Media Types
OAuth
OAuth Authorizations API
Other Authentication Methods
Troubleshooting
Pre-release Program
API Previews
Versions
Activity overview
Events
Event Types & Payloads
Feeds
Notifications
Starring
Watching
Gists overview
Comments
Git Data overview
Blobs
Commits
References
Tags
Trees
Integrations
Installations
Issues overview
Assignees
Comments
Events
Labels
Milestones
Timeline
Migration overview
Migrations
Source Imports
Miscellaneous overview
Emojis
Gitignore
Licenses
Markdown
Meta
Rate Limit
Organizations overview
Members
Teams
Webhooks
Projects overview
Cards
Columns
Pull Requests overview
Review Comments
Reactions overview
Commit Comment
Issue
Issue Comment
Pull Request Review Comment
Repositories overview
Branches
Collaborators
Comments
Commits
Contents
Deploy Keys
Deployments
Downloads
Forks
Invitations
Merging
Pages
Releases
Statistics
Statuses
Traffic
Webhooks
Search overview
Repositories
Code
Issues
Users
Legacy Search
Users overview
Emails
Followers
Git SSH Keys
GPG Keys
Administration (Enterprise)
Enterprise overview
Admin Stats
LDAP
License
Management Console
Pre-receive Environments
Pre-receive Hooks
Search Indexing
Organization Administration