In PHPStorm I got with git pull and git push this error:
fatal: protocol error: bad line length character: Erro
An error has occurred while processing the shared archive file.
Unable to unmap shared space.
While command line and tortoise worked fine.
Fixed it by changing in PHPStorm settings in Version Control > Git:
"SSH executable" from "Build-in" to "Native"
Only toke me a few hours to figure this out :D