如何从命令行显示存储库或存储库中指定文件的标准 TortoiseGit 日志窗口?
问问题
5487 次
2 回答
23
如果您当前位于工作副本目录中,则可以运行以下命令:
TortoiseGitProc /command:log /path:.
或者仅显示特定文件的日志,请使用:
TortoiseGitProc /command:log /path:MyFile.txt
但是,我还没有弄清楚如何指定某个分支/远程。
于 2012-05-02T05:07:38.657 回答
9
Assume C:\Program Files\TortoiseGit\bin
is in %PATH%
Since 1.8.0
TortoiseGitProc.exe /command:log
will show log of repository in current directory.
TortoiseGitProc.exe /command:log /path:C:\Repo1\MyFile1.txt
TortoiseGitProc.exe /command:log /path:MyFile1.txt
will show the change log of MyFile1.txt
Note that MyFile1.txt
part is case sensitive, C:\Repo1\
part is not case sensitive.
Note: 1.7.15 and older use TortoiseProc.exe
于 2013-03-13T03:23:54.513 回答