2

I saw in the webserver log, that a file is being requested many times. This file does not exist anymore, and is renamed/moved to a new location. I have the destination for the old location /lay/gr.js but i need to find whats the new location or name of the file is.

The whole project is tracked with Git, and so it should be possible to find, the right commit containing changes to this file i guess.

René Höhle
  • 26,716
  • 22
  • 73
  • 82
mnstrflkrn
  • 503
  • 1
  • 5
  • 15

2 Answers2

3

Its not a git command but if you are using linux try:

find ./ -name "gr.js"

after checkout or update project

EDIT: Check if there is something that you can use to find renamed files how-to-find-the-new-path-of-a-renamed-file-whose-original-name-is-known

Community
  • 1
  • 1
sufleR
  • 2,865
  • 17
  • 31
3

I like sufleR's answer, but to answer the git part, I'd suggest that you do a

git log -- yourfile

The last (first from the top) commit probably is the one you're looking for.

Michael Krelin - hacker
  • 138,757
  • 24
  • 193
  • 173