Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用GithubAPI获取分支的第一个父路径?_Git_Api_Github - Fatal编程技术网

如何使用GithubAPI获取分支的第一个父路径?

如何使用GithubAPI获取分支的第一个父路径?,git,api,github,Git,Api,Github,使用GithubAPI,有没有一种方法可以单独获取与第一个父级关联的提交ID 简单地说,我想得到 git log --first-parent origin/branch_name 通过API执行命令

使用GithubAPI,有没有一种方法可以单独获取与第一个父级关联的提交ID

简单地说,我想得到

git log --first-parent origin/branch_name
通过API执行命令