I'm trying to kill a process on GitBash on Windows10 using the taskkill command. However, I get the following error:
$ taskkill /pid 13588
ERROR: Invalid argument/option - 'C:/Program Files/Git/pid'.
Type "TASKKILL /?" for usage.
it works fine on cmd. Can anyone help?
You have to use double slashes in this case:
taskkill //PID 13588
This is documented here: http://www.mingw.org/wiki/Posix_path_conversion
Look at the examples on this page, especially the //foobar
example.