gan*_*404 2 git cygwin intellij-idea
我正在使用git和cygwin.从cygwin shell获取和克隆远程仓库.但是来自IntellJ IDEA的消息失败了:
获取失败:致命:解包对象失败
当尝试git pull从cygwin 执行时它可以工作,但是从IntelliJ失败并出现错误:
致命:'拉'似乎是一个git命令,但我们不是
知道怎么解决吗?
这是我的git配置:
core.autocrlf=true
user.name=MyUser
user.email=my@email.com
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
remote.origin.url=git@git.somedomain.com:myproject/myproject.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
Run Code Online (Sandbox Code Playgroud)
将您的cygwin bin目录(可能C:\cygwin64\bin)添加到Windows PATH环境变量中.设置C:\cygwin64\bin\git.exe为intellij中git的路径.
| 归档时间: |
|
| 查看次数: |
1658 次 |
| 最近记录: |