Reputation: 123
Similar to "Is there a way to see the shell commands executed by SmartGit?" is there a way to see the commands that the Tower GUI is executing on my behalf? I want to learn the git command line at the same time I'm using the GUI.
Upvotes: 0
Views: 2430
Reputation: 41
I managed to log the git commands by configuring my own git binary in Settings > Git config > Git binary Its a simple shell script that runs the original git and logs the arguments to a log file (that you need to adjust)
#!/bin/bash
git "${@}"
echo "$(date +%s) git ${@}" >> /some/path/my.log
Upvotes: 0
Reputation: 12158
This is possible if you enable Debug Logging in the Help menu. Then open Console.app and create a System Log Query like in the screenshot below. That will list all the commands that Tower.app executes for you. Note that it passes a lot of arguments that you normally wouldn't use yourself, so Tony's advice to learn the commands still applies.
Upvotes: 7