-1

I need to find a string, that corresponds to regex, in the whole git repository. Can i achive that using git tool? Thanks

2 Answers2

1
git log -G <pattern>

does that. See the doc.

Romain Valeri
  • 19,645
  • 3
  • 36
  • 61
0

You can use the git rev-list command to search through the repo. If you want to search based on commit message use the - - grep option. https://git-scm.com/docs/git-rev-list

ssc327
  • 690
  • 1
  • 9
  • 19