开发者

Using gitk on msysgit

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 w开发者_JAVA百科hen I type gitk I get:

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


Use gitk.cmd from the cmd/ folder


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜