Get a reference

GET {{baseUrl}}/repos/:owner/:repo/git/ref/:ref

Returns a single reference from your Git database. The :ref in the URL must be formatted as heads/<branch name> for branches and tags/<tag name> for tags. If the :ref doesn't match an existing ref, a 404 is returned.

Note: You need to explicitly request a pull request to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see [Checking mergeability of pull requests](https://developer.github.com/v3/git/#checking-mergeability-of-pull-requests).

RESPONSES

status: OK

{&quot;ref&quot;:&quot;refs/heads/featureA&quot;,&quot;node_id&quot;:&quot;MDM6UmVmcmVmcy9oZWFkcy9mZWF0dXJlQQ==&quot;,&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA&quot;,&quot;object&quot;:{&quot;type&quot;:&quot;commit&quot;,&quot;sha&quot;:&quot;aa218f56b14c9653891f9e74264a383fa43fefbd&quot;,&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd&quot;}}