在同一个设备中,我可以在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
1条答案
按热度按时间8yparm6h1#
无需在IntelliJ中打开终端进行推送。只需使用工具栏或
Git
菜单下的“推送”操作即可。点击此处查看更多Push信息:
https://www.jetbrains.com/help/idea/commit-and-push-changes.html#push