After spending more time than I would like to admit, I managed to find a working solution to run gitk from my cygwin shell. I could not get any of the instructions to start the X server for reliable operation, and, in the end, the solution was quite simple.
The biggest caveat is that you need to install Git for Windows, you can download for it here .
Now for the whole gitk part being executed. Git for windows includes the cmd folder, which has the gitk.cmd command line gitk.cmd . That is all you need to call to open gitk .
$ [path-to-git]/cmd/gitk.cmd
On my system, the Git path is in "C: \ Program Files (x86) \ Git", so the command will look like this:
$ "/cygdrive/c/Program Files (x86)/Git/cmd/gitk.cmd"
In my ~ / .bash_profile, I added a function to handle this call that looks like this:
gitk() { "/cygdrive/c/Program Files (x86)/Git/cmd/gitk.cmd" }
Hope this helps someone else try to figure this out.
David Kartik Feb 12 '15 at 20:41 2015-02-12 20:41
source share