2👍
✅
In git, you can only ask for the current commit on some given branch. Here’s an example:
$ wget -q -O - https://api.github.com/repos/smarnach/pyexiftool/git/refs/heads/master
{
"ref": "refs/heads/master",
"url": "https://api.github.com/repos/smarnach/pyexiftool/git/refs/heads/master",
"object": {
"type": "commit",
"url": "https://api.github.com/repos/smarnach/pyexiftool/git/commits/7be4b9bb680521369f2ae3310b1f6de5d14d1f8b",
"sha": "7be4b9bb680521369f2ae3310b1f6de5d14d1f8b"
}
}
Source:stackexchange.com