How can you show the standard TortoiseGit log window for a repository or specified file in repository from the command line?
You can open it using TortoiseGit → Repo-browser or from the log dialog (cf. the section called “Log Dialog”) using the context menu of a commit.
Right-Click in the File explorer within the repository and select TortoiseGit =>Create Branch. Name it enhancement and select the checkbox Switch to the new branch. Click Ok. Make a change to the file in the enhancement branch and commit the same.
We'll need to configure TortoiseGit - to do this, right click anywhere on your Desktop, select TortoiseGit and then Settings. Find Git and then click on Config from the menu on the left.
The settings appear to all be stored in the Registry rather than file configs. If you look under Computer\HKEY_CURRENT_USER\Software\TortoiseGit you will find a number of ContextMenuEntries keys which I believe control the context menu settings.
If you're currently in a working copy directory, you can run this command:
TortoiseGitProc /command:log /path:.
Or to just show the log of a specific file, use:
TortoiseGitProc /command:log /path:MyFile.txt
I haven't yet worked out how to specify a certain branch/remote, however.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With