使用commit sha过滤gitlab提交历史记录

时间:2018-05-15 05:24:02

标签: git gitlab

有没有办法根据提交SHA过滤GitLab提交历史记录?我试着查看他们的社区博客,并且能够知道过去已经请求过这样的功能。我目前正在使用GitLab Community Edition 10.6.2。

非常感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

您可以使用Gitlab API获取SHA的提交:GET /projects/:id/repository/commits/:sha

curl -s "https://gitlab.example.com/api/v4/projects/<PROJECT_ID>/repository/commits/<SHA>?private_token=<TOKEN>"
相关问题