Can I see which commands are executed by git-gui?

Is there any way to see what git-gui commands are executing? Either in some status bar, or in a log? This would be really useful for a better study of the command line.

+8
git git-gui
source share
2 answers

Yes. git -gui accepts the --trace , which will make it print every git command that it runs on stderr. If you work on Windows where there is no stderr, then the Tk console is also displayed, and this output is displayed there. On Windows, you can also show the console using Ctrl-F2, even without the --trace option, if you want to do some debugging in a running application. On other systems, stderr will appear in the console window from which you started the application. If you used a desktop icon or shortcut, you can launch a terminal window and start it manually to see the result (unix or macos).

+6
source share

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

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

+1
source share

All Articles