CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 22 Aug 2025 09:55:00 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20130728053942
location: https://web.archive.org/web/20130728053942/https://developer.github.com/v3/git/tags
server-timing: captures_list;dur=0.500379, exclusion.robots;dur=0.017134, exclusion.robots.policy;dur=0.008181, esindex;dur=0.009583, cdx.remote;dur=23.300016, LoadShardBlock;dur=362.485787, PetaboxLoader3.resolve;dur=172.265852, PetaboxLoader3.datanode;dur=54.328179
x-app-server: wwwb-app213
x-ts: 302
x-tr: 410
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app213; 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: Fri, 22 Aug 2025 09:55:00 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: Sun, 28 Jul 2013 05:49:41 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: Sun, 28 Jul 2013 05:39:42 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-ny56-NYC
x-archive-orig-x-cache: MISS
x-archive-orig-x-cache-hits: 0
x-archive-orig-x-timer: S1374989981.995226860,VS0,VE14
x-archive-orig-vary: Accept-Encoding
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 28 Jul 2013 05:39:42 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="Mon, 01 Jul 2013 20:17:44 GMT", ; rel="memento"; datetime="Sun, 28 Jul 2013 05:39:42 GMT", ; rel="next memento"; datetime="Mon, 05 Aug 2013 19:58:14 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: alexa20130729-27/51_35_20130728053847_crawl101.arc.gz
server-timing: captures_list;dur=0.452211, exclusion.robots;dur=0.016637, exclusion.robots.policy;dur=0.007711, esindex;dur=0.010286, cdx.remote;dur=8.437071, LoadShardBlock;dur=134.762811, PetaboxLoader3.datanode;dur=173.486974, load_resource;dur=145.928236, PetaboxLoader3.resolve;dur=75.156514
x-app-server: wwwb-app213
x-ts: 200
x-tr: 348
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 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.