Macos 通过终端从github访问提交历史记录?

Macos 通过终端从github访问提交历史记录?,macos,git,github,terminal,github-api,Macos,Git,Github,Terminal,Github Api,需要一些快速的帮助。新手终端用户在这里。尝试使用以下说明:获取特定用户的提交历史记录 但是,我不知道该怎么办: GET /repos/:owner/:repo/stats/contributors 当我用我正在使用的特定名称替换所有者和回购时,不会发生任何事情,因为我在终端中遇到以下错误: -bash: GET: command not found 这是一个非常时间敏感的问题,救命!谢谢 您可以按照下面的步骤查看如何翻译 GET /repos/:owner/:repo/stats/contr

需要一些快速的帮助。新手终端用户在这里。尝试使用以下说明:获取特定用户的提交历史记录

但是,我不知道该怎么办:

GET /repos/:owner/:repo/stats/contributors
当我用我正在使用的特定名称替换所有者和回购时,不会发生任何事情,因为我在终端中遇到以下错误:

-bash: GET: command not found
这是一个非常时间敏感的问题,救命!谢谢

您可以按照下面的步骤查看如何翻译

GET /repos/:owner/:repo/stats/contributors
正如您所注意到的,不应包括“:”

curl --include https://api.github.com/users/caspyin
将用户凭据传递给基本身份验证,以访问受保护的资源,如用户的星号注册表或与其配置文件关联的私人信息

只传递不带冒号的用户名(
)会提示您输入帐户密码。
这样可以避免在命令行历史记录中使用密码


在您的情况下,用正确的所有者和回购方名称替换

curl https://api.github.com/repos/<owner>/<reponame>/stats/contributors
curlhttps://api.github.com/repos///stats/contributors

您需要使用curl发出HTTP GET请求。我尝试了这个方法,但没有成功:“curl here)/:(repository here)/stats/contributors“您遇到了什么错误?说明找不到该错误,并提供了指向开发人员github页面的链接。最终得到了它。输入错误,包括“:”!
curl --user "caspyin" https://api.github.com/users/caspyin
curl https://api.github.com/repos/<owner>/<reponame>/stats/contributors