Pau
Pau

Reputation: 31

Git: How to look for a folder across all versions of a repo?

I have a repository cloned in my PC, and came across a link refering to a folder I couldn't find anywhere. In fact, a link to the code I'm looking for gives 404 as a result. Is there any way to try to find it across all versions/branches?

Upvotes: 3

Views: 39

Answers (1)

Flows
Flows

Reputation: 3863

To do that, you can grep in commit content like explained on another post

git grep "Your Link" $(git rev-list --all)

Another solution is to used log command:

git log -S"Your Link"

Upvotes: 1

Related Questions