Call TortoiseGit's 'show log' by commandline

寵の児 提交于 2019-12-11 13:00:23

问题


When entering a git-directory through the commandline in Windows I want a commandline which shows me the Tortoisegit's show log GUI.

So I want to avoid the open explorer->go to folder-click right->etc. thing, but I still want the nice looking show log graph of Tortoisegit.

How do I perform this in the cmd?


回答1:


When you are in command line interface (assume the PATH is good), just use:

TortoiseGitProc /command:log

otherwise,

TortoiseGitProc /command:log /path:"the\path\you\want\to\open\log"


cf. TortoiseGit Manual - Appendix D. Automating TortoiseGit


For getting the exact command argument, go to TortoiseGit -> Settings -> Advanced tree node -> set Option "Debug" value to true.

Then open the log via normal way, you will get extra message dialog. Something like:

Then use Ctrl + C to copy the whole message, and paste it to somewhere, ex: notepad, and reuse the command line.

(BTW, you can easily ignore the /hwnd argument.)



来源:https://stackoverflow.com/questions/34016652/call-tortoisegits-show-log-by-commandline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!