GitHub REST APIまたはGITコマンドラインツールを使用してその情報にアクセスする方法はありますか?
さまざまな方法ですべてのタグのリストを取得できます。
GitHub API
タグ
GET /repos/:owner/:repo/git/tags/:sha
応答を取得:
{
"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": "[email protected]",
"date": "2014-11-07T22:01:45Z"
},
"object": {
"type": "commit",
"sha": "c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c",
"url": "https://api.github.com/repos/octocat/Hello-World/git/commits/c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c"
}
}
を
git log
git log --decorate --graph --oneline
![enter image description here](https://i.stack.imgur.com/k0Vvk.png)
git tag
(指定されていない場合はHEAD)をコミット指定が含まれている
--contains [<commit>]
のみを一覧表示タグ。リポジトリをクローンした後
![enter image description here](https://i.stack.imgur.com/Wffmy.png)
、 'gitのタグ--containsが答えに似a5a5f612e' http://stackoverflow.com/a/7923114/5781248 –