Balaji V
Balaji V

Reputation: 956

GIT search files across projects using regex

Hi i would like to search for a file using a particular pattern in my GIT repo that has multiple projects .

Is it possible?

Upvotes: 1

Views: 354

Answers (1)

VonC
VonC

Reputation: 1328982

A git repo doesn't know about the notion of "project".

You can simply grep in your current working tree (if those projects are checked out)

Or you can use git grep in order to search in the history of those same files, across branches.

See "How to grep (search) committed code in the git history?"

Upvotes: 1

Related Questions