Can I see what commands git-gui is executing?

二次信任 提交于 2019-12-03 12:55:18

问题


Is there a way to see what commands git-gui is executing? Either in some status bar, or log perhaps? That would be really useful for learning the command line better.


回答1:


Yes. git-gui accepts a --trace option which will make it print each git command it executes on stderr. If you are running on Windows where there is no stderr, then it also shows the Tk console and this output is visible there. On Windows you can also show the console with Ctrl-F2 even without the --trace option if you want to do some debugging on the running application. On other systems, stderr will appear in the console window you launched the application from. If you used a desktop icon or shortcut, you might want to start a terminal window and start it manually to see the output (unix or macos).




回答2:


I created a desktop shortcut to point to the version control directory I work with most of the time:

"C:\Program Files\Git\cmd\git-gui.exe" "--working-dir" "C:\my\version\control\directory" "--trace"



来源:https://stackoverflow.com/questions/18473452/can-i-see-what-commands-git-gui-is-executing

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