How to search through the history of a file #1377
Replies: 1 comment 4 replies
-
I'm not sure if this is quite what you're after, but it's what I was looking for when I clicked on this question:
Once you've entered a path, you can then navigate through a list of commits in which that file was changed, with the changes to that file being displayed on the right-hand side. If you use My problem was that I wanted to check a file that wasn't shown in the changed files list, and I wasn't quite sure what the exact path was to type into the prompt. This turns out to be a good place where the An even better solution would be a command to use fzf (a fuzzy search tool) to fuzzy search the directory for your file and copy the path to your clipboard. This is getting off-topic, but maybe it will be useful for someone trying to optimize their workflow surrounding this feature... |
Beta Was this translation helpful? Give feedback.
-
Is it possible to search through all lines of the history of a file (not commits)? For example to find out when a particular string was added to a file then
checkout
to that commit?Beta Was this translation helpful? Give feedback.
All reactions