How can I find a file in my git repository with SourceTree?

22,888

Solution 1

In the working copy view there is a dropdown where you can select a filter for the visible files in the column below. Just select "All Files" instead of the "Pending" default.

On the right side there also is a Searchbox to filter this file list.

SourceTree Working Copy View Screenshot

Solution 2

You can view an individual file log by name, using the same method in juffel's answer (Workspace > File status > All files in combo), and then write the filename in the Search box at the right. You will see directly the file log without searching manually in the file list.

Share:
22,888
Dimitri Dewaele
Author by

Dimitri Dewaele

Senior software engineer in a wide variety of business applications. Particularly interested in Java development, cloud computing, server performance and stability. Also passionate about android technology as official android publisher. Always interested in new technologies, as well as close interaction with the Open Source community.

Updated on October 15, 2021

Comments

  • Dimitri Dewaele
    Dimitri Dewaele over 2 years

    How can I find a file in my git repository with SourceTree?

    Currently, the file has to be present in some branch log, but I want to search on the repository.

    I want to:

    • right-click the file
    • Log Selected...

    • and peek at it's history.

    The SourceTree file history is quite good.

    enter image description here

    enter image description here

  • Thierry_S
    Thierry_S over 6 years
    This, for me, is just a workaround. I want to filter the general log view of my working copy, using the Search tab (next to File Status and Log/History tabs), and at the top right, in the existing Search dropdown, add the choice "Filename" alongside the existing "Commit Messages", "File Changes" and "Authors". You could even have an "All" choice. TortoiseGit or TortoiseSvn for example have this, and it's very convenient.