16

How can you show the standard TortoiseGit log window for a repository or specified file in repository from the command line?

1

2 Answers 2

26

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.

2
  • @StevePitchers Yes I think you're correct, thank you. My answer from several years ago appears outdated, so I've updated it. :-)
    – Simon East
    Dec 7, 2015 at 6:49
  • I created a bash alias for it in ~/.bashrc using alias tgit="TortoiseGitProc.exe /command:log" so I can just launch it using tgit. Aug 20, 2019 at 14:03
9

Assume C:\Program Files\TortoiseGit\bin is in %PATH%

Since 1.8.0

TortoiseGitProc.exe /command:log

will show log of repository in current directory.

TortoiseGitProc.exe /command:log /path:C:\Repo1\MyFile1.txt
TortoiseGitProc.exe /command:log /path:MyFile1.txt

will show the change log of MyFile1.txt

Note that MyFile1.txt part is case sensitive, C:\Repo1\ part is not case sensitive.

Note: 1.7.15 and older use TortoiseProc.exe

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.