Find a commit that includes a specific file #3047
-
I have somehow lost a file that I added to my workspace. I have the It's possible that I somehow deleted the file without Is there a way to search all commits for the existence of a particular file? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can do |
Beta Was this translation helpful? Give feedback.
You can do
jj log -r .. <path>
to find any visible commits that touched the file. We unfortunately don't yet have a way of including all commits that have ever been visible (#2623). If you're in a colocated repo, you can probably dogit log --all <path>
to find it, since that will include all commits reachable from therefs/jj/keep/*
refs.