How can I do a file search in SourceTree? For example, I am looking for all file commits with the .yml extension only.
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.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.