我知道repo中的提交ID,我怎么知道它属于哪个git项目?

时间:2017-03-14 11:48:03

标签: git commit repo

我使用repo forall -c 'git log --since=xxx'查找最新的提交。我知道提交ID,但我不知道它属于哪个git项目。如何获取给定提交的项目名称?感谢。

2 个答案:

答案 0 :(得分:0)

您可以使用以下方式提取遥控器:

git remote -v 

并解析结果以获取项目名称 名称是结果URL的最后一个值

enter image description here

答案 1 :(得分:0)

repo forall -cp 'git log --since=xxx'

-p:在输出指定命令之前显示项目标题

相关问题