Search code examples
gitcommitrepo

I know a commit ID in a repo, how can I know which git project it belongs to?


I used repo forall -c 'git log --since=xxx' to find the latest commits. I know the commit id but I don't know which git project it belongs to. How can I get the project name of a given commit? Thanks.


Solution

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

    -p: show project headers before output of the specified command