Git is not recognized in Integrated terminal

Answered

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?

0
3 comments

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.

0
Avatar
Permanently deleted user

After reboot PC, the problem has resolved. I think it is a temporary issue or occurs randomly.

0

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

0

Please sign in to leave a comment.