Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,556,811
Community Members
 
Community Events
184
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.

2 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 11, 2014

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
AUG Leaders

Atlassian Community Events