如何在SourceTree中按文件夹过滤日志? [英] How do I filter log by folder in SourceTree?

查看:536
本文介绍了如何在SourceTree中按文件夹过滤日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在SourceTree中,如何限制日志以仅显示提交给指定文件夹内的受影响文件?



I。相当于:
git log path / to / folder

解决方案

此答案已过时



现在已过时。 / strong> Windows版本的SourceTree内置了此功能。目前版本的Windows版SourceTree(1.5.2.0)现在具有此功能,因此 @ bozi的解决方案现在可以同时适用于SourceTree的Windows和Mac版本。



原始答案



代替使用SourceTree,您可以使用 p>

  gitk  -  folderPath 

查看文件夹的历史记录。 gitk 采用了许多与 git log 相同的选项。



另一个选择是使用另一个像TortoiseGit的Git gui,它可以让你在Windows资源管理器中选择文件夹,并右键点击以获得一个上下文菜单,从中可以选择查看该特定文件夹的日志。


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

解决方案

This Answer is Outdated

This answer is now outdated. It was written before the Windows version of SourceTree had this feature built-in. The current version of SourceTree for Windows (1.5.2.0) has this feature now, so @bozi's solution should now work for both the Windows and Mac versions of SourceTree.

Original Answer

Instead of using SourceTree, you can use

gitk -- folderPath

to view the history of just the folder. gitk takes many of the same options that git log does.

Another option is to use another Git gui like TortoiseGit, which will let you select folders in Windows Explorer and right-click to get a context menu, from which you can select to view the log for that one particular folder.

这篇关于如何在SourceTree中按文件夹过滤日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆