1

You can find where a file was modified using

git log -- pathspec

but that stops on revision that does not contain any files matching pathspec. Well, the file in question was removed, so the last revision does not contain it, so it stops immediately. So how do I find the revision where the file was deleted?

1 Answer 1

1

Using

git log --full-history -- pathspec

to prevent the undesired history simplification.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.