如何通过GitHub API获取GitHub仓库的Root:tree_sha?
GitHub API帮助页面似乎没有解释这个关键信息:
http://develop.github.com/p/object.html
可以通过tree SHA获取tree的内容
tree/show/:user/:repo/:tree_sha
要从我们提交的清单中获取facebox项目的根目录树列表,可以调用此命令:
$ curl http://github.com/api/v2/yaml/tree/show/defunkt/facebox/a47803c9ba26213ff194f042ab686a7749b17476
HEAD
,它是当前的树。 - Brenno Costa