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.
Use TSKILL processid
Example:
TSKILL 1234
To fix this I need to kill another additional program:
taskkill //F //IM "git-bash.exe"
taskkill //F //IM "bash.exe"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With