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 vote

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

Cheers,
Renato 

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

Is there a git command that does something like that?

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

270 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot