-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
  • 17,132
  • 3
  • 30
  • 49
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
  • 642
  • 1
  • 8
  • 17