fatal: protocol error: bad line length character error: failed to push to 'git.example.com:/Repo/Project.git' fatal: The remote end hung up unexpectedly
It likely means you have some extraneous characters, info message or something upon loging into ssh in command mode.to test this, do:
ssh email@example.com echo testing commands
You should only see
testing commands returned. If there are any other characters, you should eamine your dot shell rc file to find any echo or other commands that may produce output.
Thanks to spearce on #git for the debugging help.