Git is not recognized in Integrated terminal
已回答
I've added C:\Program Files\Git\bin to PATH environment, and git command is work fine in regular command prompt.
But it doesn't work at all in IntelliJ's integrated terminal.
How to I fix this?
请先登录再写评论。
How/where did you configure the PATH?
Do you use the same shell in IDE terminal settings and in OS terminal?
Please also make sure to restart IDE after you have changed the OS environment variable.
After reboot PC, the problem has resolved. I think it is a temporary issue or occurs randomly.
Environment variables are loaded on the IDE start. So the builtin terminal does not know about changes in the PATH until IDE is restarted. It is expected behavior.
See e.g. https://youtrack.jetbrains.com/issue/IDEA-177894