I am using git with cygwin. Fetching and cloning remote repo works from cygwin shell. But fails from IntellJ IDEA with message:
Fetch failed: fatal: unpack-objects failed
When try execute git pull
from cygwin it works, but from IntelliJ fails with error:
fatal: 'pull' appears to be a git command, but we were not
Any idea how to solve it?
Here is my git config:
core.autocrlf=true
user.name=MyUser
[email protected]
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
[email protected]:myproject/myproject.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
Add your cygwin bin directory (probably C:\cygwin64\bin
) to the Windows PATH environment variable. Set C:\cygwin64\bin\git.exe
as your path to git in intellij.