Using gitk on msysgit

I am trying to use gitk on mysysgit. I do not use Cygwin or MinGW to start mysysgit, just a direct DOS command window on Windows.

The gitk file is located in the bin / folder, but it is not executable, so when I type gitk , I get:

'gitk' is not recognized as an internal or external command running a program or batch file.

+7
source share
2 answers

Use gitk.cmd in the cmd/ folder

+11
source

If you installed Git for windows and you run cmder on Windows and cannot start gitk , then:

  • Press superkey, find System Environmental Varibales. You will see there Edit system environmental variables .
  • Edit the PATH (top to top).
  • Add C:\Program Files (x86)\Git\cmd (or something like that on the right) to the end and end the line with a semicolon
  • relaunch cmder
  • instead of gitk , write gitk.cmd now

Done.

Note. The above command may be valid for command line tools other than mingw or cygwin or bash as shells

+1
source

All Articles