Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,316
Community Members
 
Community Events
165
Community Groups

File search in SourceTree

How can I do a file search in SourceTree?  For example, I am looking for all file commits with the .yml extension only.

2 answers

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 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...

Like Mahmoud Z likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

61,930 views 127 27
Read article

Community Events

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

Events near you