Git log execution on multiple repos

Viewed 14

I have a directory containing hundreds of GIT repos and I wish to execute GIT log against repos having a certain naming convention. The output of this should be stored in a file, preferably one file per repo. Is there any script that can accomplish this

Example: ''' dir contains repo1.git,repo2.git,repo3.git and so on '''

Git log of repo1 should be stored in repo1log.txt git log of repo2 should be stored in repo2log.txt and so on

Can anyone please advise on this?

0 Answers
Related