Intellij Idea intellij终端不知道git

gg58donl  于 2022-11-28  发布在  Git
关注(0)|答案(1)|浏览(159)

在同一个设备中,我可以在cmd中写git命令,但是当我在intellij终端中写"git"时,我会看到这些红线:

git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
included, verify that the path is correct and try again.
At line:1 char:1
+ git init
+ ~~~
    + CategoryInfo          : ObjectNotFound: (git:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

原因是什么?我能做些什么?
我正在尝试将我的项目直接从ij推到github

8yparm6h

8yparm6h1#

无需在IntelliJ中打开终端进行推送。只需使用工具栏或Git菜单下的“推送”操作即可。
点击此处查看更多Push信息:
https://www.jetbrains.com/help/idea/commit-and-push-changes.html#push

相关问题