You can't search commits by filename in SourceTree. It might be possible on the Git command line, but I don't know for sure.
You can search your working copy by filename. In the File Status tab, choose to show "All" instead of "Pending", then type your search in the search box to the right (e.g., "yml").
You can also view all of the commits for a particular file by right-clicking the file, and choosing "Log Selected..."
You can't search commits by filename in SourceTree.
Confirmed, even now in 2020. Which is quite surprising, when other tools like the Git command line or TortoiseGit can do this for years already. BTW "git blame" is also pretty limited when compared to some other tools.
It might be possible on the Git command line, but I don't know for sure.
Sure that this is possible, it is even super easy, see for example How can I list all commits that changed a specific file?.
Yet, Sourcetree seems to be a handy tool. It's a pity that authors, or Atlassian generally, keep overlooking some "details" in their otherwise great products...
While I'd love to see a feature added to SourceTree that would allow you to see the history of a file that does not currently exist. A workaround though would be to add to every commit the files that were updated. That way you could search commit messages for .yml and get all commits where a .yml file was updated.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events