Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I filter log by folder in SourceTree?

Tags:

In SourceTree, how do I limit the log to only show commits that affected files within a given folder?

I.e. the equivalent to: git log path/to/folder

like image 610
Ergwun Avatar asked Jul 12 '13 04:07

Ergwun


People also ask

How do I view file history in SourceTree?

Users can navigate to the log/history window by clicking the tick-shaped icon button at the top-left section. Users can also alternatively press Command+1, or navigate it through View > File Status View.

Where is the SourceTree log?

Users can navigate to the log/history window through the Log/History tab way below. Users can also alternatively press CTRL+2, or navigate it through View > Log View.

How do I search in SourceTree?

In the source tree, click a dimension, hierarchy, or level, and click Search metadata. In the Words box, type the words or characters for which you want to search. In the Options box, click the search parameter you want to use. If you want to perform a case-insensitive search, select the Case insensitive check box.

What are unstaged files in SourceTree?

The unstaged files are just the files with the last modifications you brought. The staged file are like a snapshot that you take at a T time, Git will store these snapshots under staged files (one snapshot/file at a time).


1 Answers

Click on the File Status segmented control in the top left corner.

Screenshot 1

Above the Files staged in the index area set the filters to Tree View and Show All. All of your files will appear in the Files in the working tree area.

Screenshot 2

Select one or more files and/or folders, right click and select Log Selected....

Screenshot 3

like image 195
bozi Avatar answered Nov 06 '22 23:11

bozi