I am trying to plug egit
in Eclipse to run my pre-commit hooks. But it doesn't seem to work.
I found a similar SO Question but that doesn't seem to be working in my case.
Here is what all I got as required tools
- GitForWindows in place
- Pre-commit hooks configured
- Works well from command line and Tortoise git as well.
As suggested from answers and comments section in the aforementioned linked question, I did add the cygpath.exe
empty file in C:\Program Files\Git\bin
and put this in path. Also, I verified that cygpath.exe
is already available in C:\Program Files\Git\usr\bin
alongside ssh.exe, bash.exe
.
Again, both C:\Program Files\Git\bin
and C:\Program Files\Git\usr\bin
are added to System variables and user variables under Environment variables in my Windows 10.
Additional info
- Eclipse Version: Photon Release (4.8.0)
- Eclipse Egit : 5.x version