我能看到git-gui执行的是什么命令吗? [英] Can I see what commands git-gui is executing?
问题描述
有没有办法查看 git-gui 正在执行?或者在某些状态栏中,或者可能是日志?这对于更好地学习命令行是非常有用的。
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.
推荐答案
是的。 git-gui接受一个 - trace
选项,它将打印它在stderr上执行的每个git命令。如果您在没有stderr的Windows上运行,那么它还会显示Tk控制台,并且该输出在此处可见。在Windows上,如果您想对正在运行的应用程序执行一些调试,即使没有--trace选项,也可以使用Ctrl-F2显示控制台。在其他系统上,stderr将显示在您启动应用程序的控制台窗口中。如果您使用的是桌面图标或快捷方式,则可能需要启动终端窗口并手动启动以查看输出(unix或macos)。
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).
这篇关于我能看到git-gui执行的是什么命令吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!