【发布时间】:2014-11-17 02:54:45
【问题描述】:
需要一些快速帮助。新手终端用户在这里。尝试使用这些说明:https://developer.github.com/v3/repos/statistics/#commit-activity 获取特定用户的提交历史记录。
但是,我不知道该怎么办:
GET /repos/:owner/:repo/stats/contributors
当我用我正在使用的特定名称替换所有者和 repo 时,没有任何反应,因为我在终端中收到此错误:
-bash: GET: command not found
这是一个非常时间敏感的问题,求助!谢谢!
【问题讨论】:
-
您需要使用 curl 发出 HTTP GET 请求。
-
我试过了,但没用:“curl api.github.com/repos/:(u/n here)/:(repository here)/stats/contributors”
-
你遇到了什么错误?
-
说找不到,并提供了他们的开发者 github 页面的链接。
-
终于搞定了。错字,包括“:”!
标签: macos git github terminal github-api