It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to search for commits where a file of a particular type was added?

How do I search for all commits where an html file was added? I have a static  website under source control and I'd like to see a record of what pages I added to the site and when. 

1 answer

0 votes
rrudnicki Atlassian Team Jun 12, 2017

Unfortunately, you can't search commits by filename in SourceTree. However, you should be able to do it by Git command line using:

 git log --follow filename


Thanks Renato. What I meant was something that tells me all files and when they were committed, so it would return something like:

a.html first committed on 1 Jan 2017
b.html first committed on 12 Jan 2017
c.html first committed on 23 Dec 2016

Is there a git command that does something like that?

Suggest an answer

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

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,935 views 0 12
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