8

I'm trying to use the gitk on mysysgit. I'm not using Cygwin or MinGW to run mysysgit, just a straight up DOS command prompt on Windows.

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

'gitk' is not recognized as an internal or external command, operable program or batch file.

Barend
  • 17,296
  • 2
  • 61
  • 80
Ben G
  • 26,091
  • 34
  • 103
  • 170

2 Answers2

12

Use gitk.cmd from the cmd/ folder

manojlds
  • 290,304
  • 63
  • 469
  • 417
1

If you've installed Git for windows and you're running cmder on windows and unable to launch gitk, then:

  • Press superkey, search System Environmental Varibales. You shall see Edit system environmental variables there.
  • Edit the PATH (the caps one on top)
  • Add C:\Program Files (x86)\Git\cmd (or whatever the right path be) at the end, and terminate the line with a semicolon
  • relaunch cmder
  • instead of gitk, write now gitk.cmd

Done.

Note: The above instruction may stand valid for command line tools other than mingw or cygwin or bash like shells

DDM
  • 1,099
  • 15
  • 21
  • or install Git for Windows, add `C:\Program Files\Git\cmd` and use `gtik` as the command – Yar Nov 12 '15 at 22:55
  • The question was pertinent to non-cygwin & non-mingw users. `gitk` din't work for me while using `cmder`. – DDM Nov 14 '15 at 19:59