How to use Git GUI from Unix using Xming
题
I'm using Windows XP and I log in to a unix system using Putty where I run several Git commands. I have also installed Xming + Git GUI in my Windows system.
Now is it possible to use the Git GUI installed in my windows from the Unix system I login? For instance, if I give, git diff
can it open the visual difference in my Windows Git GUI?
解决方案
I figured it out lately.. This is what I did,
- I have started xming and the putty (with X11 forwarding enabled)
- Then after login to Unix, i set the DISPLAY environment variable to my localIP:0.0 (xming port)
- Then I have the command, git difftool HEAD myfilename, which opened the p4Merge (which i had already installed in my windows) and showed the different in GUI.
不隶属于 StackOverflow