CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 08 Aug 2025 20:23:14 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20131124105110
location: https://web.archive.org/web/20131124105110/https://developer.github.com/v3/git/tags/
server-timing: captures_list;dur=0.407139, exclusion.robots;dur=0.014950, exclusion.robots.policy;dur=0.007568, esindex;dur=0.008499, cdx.remote;dur=22.438427, LoadShardBlock;dur=291.241275, PetaboxLoader3.datanode;dur=138.663039, PetaboxLoader3.resolve;dur=119.864838
x-app-server: wwwb-app217
x-ts: 302
x-tr: 337
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app217; 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, 08 Aug 2025 20:23:15 GMT
content-type: text/html
x-archive-orig-server: GitHub.com
x-archive-orig-last-modified: Fri, 22 Nov 2013 14:54:55 GMT
x-archive-orig-expires: Sun, 24 Nov 2013 11:01:10 GMT
x-archive-orig-cache-control: max-age=600
x-archive-orig-content-length: 17314
x-archive-orig-accept-ranges: bytes
x-archive-orig-date: Sun, 24 Nov 2013 10:51:10 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-v41-ASH
x-archive-orig-x-cache: MISS
x-archive-orig-x-cache-hits: 0
x-archive-orig-vary: Accept-Encoding
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 24 Nov 2013 10:51:10 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="Sat, 02 Nov 2013 20:35:12 GMT", ; rel="memento"; datetime="Sun, 24 Nov 2013 10:51:10 GMT", ; rel="next memento"; datetime="Thu, 02 Jan 2014 12:40:43 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: alexa20131125-00/51_37_20131124105104_crawl101.arc.gz
server-timing: captures_list;dur=0.677079, exclusion.robots;dur=0.025881, exclusion.robots.policy;dur=0.011660, esindex;dur=0.013247, cdx.remote;dur=241.841014, LoadShardBlock;dur=163.625086, PetaboxLoader3.datanode;dur=153.646838, PetaboxLoader3.resolve;dur=183.308059, load_resource;dur=277.323231
x-app-server: wwwb-app217
x-ts: 200
x-tr: 767
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
Name | Type | Description |
---|---|---|
tag |
string |
The tag |
message |
string |
The tag message |
object |
string |
The SHA of the git object this is tagging |
type |
string |
The type of the object we’re tagging. Normally this is a commit but it can also be a tree or a blob . |
tagger |
hash |
A hash with information about the individual creating the tag. |
The tagger
hash contains the following keys:
Name | Type | Description |
---|---|---|
name |
string |
The name of the author of the tag |
email |
string |
The email of the author of the tag |
date |
string |
When this object was tagged. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ . |
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.