CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 20 Aug 2025 10:49:08 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20130805195814
location: https://web.archive.org/web/20130805195814/https://developer.github.com/v3/git/tags/
server-timing: captures_list;dur=0.544874, exclusion.robots;dur=0.021514, exclusion.robots.policy;dur=0.010665, esindex;dur=0.012167, cdx.remote;dur=4.174436, LoadShardBlock;dur=334.584219, PetaboxLoader3.datanode;dur=150.321313, PetaboxLoader3.resolve;dur=118.162237
x-app-server: wwwb-app204
x-ts: 302
x-tr: 361
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app204; 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, 20 Aug 2025 10:49:09 GMT
content-type: text/html
x-archive-orig-server: GitHub.com
x-archive-orig-last-modified: Tue, 23 Jul 2013 13:29:22 GMT
x-archive-orig-expires: Mon, 05 Aug 2013 20:08:14 GMT
x-archive-orig-cache-control: max-age=600
x-archive-orig-content-length: 17632
x-archive-orig-accept-ranges: bytes
x-archive-orig-date: Mon, 05 Aug 2013 19:58:14 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-sv63-SJC3
x-archive-orig-x-cache: MISS
x-archive-orig-x-cache-hits: 0
x-archive-orig-x-timer: S1375732694.562391043,VS0,VE148
x-archive-orig-vary: Accept-Encoding
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 05 Aug 2013 19:58:14 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 23 Jun 2011 02:03:39 GMT", ; rel="prev memento"; datetime="Sun, 28 Jul 2013 05:39:42 GMT", ; rel="memento"; datetime="Mon, 05 Aug 2013 19:58:14 GMT", ; rel="next memento"; datetime="Sun, 01 Sep 2013 18:08:54 GMT", ; rel="last memento"; datetime="Sat, 20 Jul 2024 04:36:35 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: WIDE-20130805152330-crawl413/WIDE-20130805180131-00009.warc.gz
server-timing: captures_list;dur=1.627243, exclusion.robots;dur=0.926119, exclusion.robots.policy;dur=0.911552, esindex;dur=0.013090, cdx.remote;dur=140.299722, LoadShardBlock;dur=209.493001, PetaboxLoader3.resolve;dur=210.722608, PetaboxLoader3.datanode;dur=117.097508, load_resource;dur=140.994572
x-app-server: wwwb-app204
x-ts: 200
x-tr: 556
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
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 Tags | GitHub API
Tags API
This tags API only deals with tag objects - so only annotated tags, not lightweight tags.
Get a Tag
GET /repos/:owner/:repo/git/tags/:sha
Response
Status: 200 OK
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"tag": "v0.0.1",
"sha": "940bd336248efae0f9ee5bc7b2d5c985887b16ac",
"url": "https://api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac",
"message": "initial version\n",
"tagger": {
"name": "Scott Chacon",
"email": "schacon@gmail.com",
"date": "2011-06-17T14:53:35-07:00"
},
"object": {
"type": "commit",
"sha": "c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c",
"url": "https://api.github.com/repos/octocat/Hello-World/git/commits/c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c"
}
}
Create a Tag Object
Note that creating a tag object does not create the reference that
makes a tag in Git. If you want to create an annotated tag in Git,
you have to do this call to create the tag object, and then
create the refs/tags/[tag]
reference.
If you want to create a lightweight tag, you only have to
create the tag reference - this call
would be unnecessary.
POST /repos/:owner/:repo/git/tags
Parameters
- tag
- String of the tag
- message
- String of the tag message
- object
- String of the SHA of the git object this is tagging
- type
-
String of the type of the object we’re tagging. Normally this is a
commit
but it can also be atree
or ablob
. - tagger.name
- String of the name of the author of the tag
- tagger.email
- String of the email of the author of the tag
- tagger.date
- Timestamp of when this object was tagged
Example Input
{
"tag": "v0.0.1",
"message": "initial version\n",
"object": "c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c",
"type": "commit",
"tagger": {
"name": "Scott Chacon",
"email": "schacon@gmail.com",
"date": "2011-06-17T14:53:35-07:00"
}
}
Response
Status: 201 Created
Location: https://api.github.com/repos/:owner/:repo/git/tags/:sha
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"tag": "v0.0.1",
"sha": "940bd336248efae0f9ee5bc7b2d5c985887b16ac",
"url": "https://api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac",
"message": "initial version\n",
"tagger": {
"name": "Scott Chacon",
"email": "schacon@gmail.com",
"date": "2011-06-17T14:53:35-07:00"
},
"object": {
"type": "commit",
"sha": "c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c",
"url": "https://api.github.com/repos/octocat/Hello-World/git/commits/c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c"
}
}
This website is a public GitHub repository. Please help us by forking the project and adding to it.
Design © 2013 GitHub, Inc. All rights reserved.
Except where otherwise noted, content on this site is licensed under a Creative Commons CC-BY license.