Pergunta

I've got my website set up so that when I'm done working locally and testing etc, I can push changes live like so:

git push khwp

This works great. And my local files are in a Dropbox folder so I can work on them on my laptop too. On the latter however, the aforementioned command does not work. I can add and commit files just fine, but for some reason the push command does not work.

How can I fix this?

I should probably add that I'm new to git, but I guess you figured that out...

EDIT: this is the error I'm getting :

/bin/bash: line 0: exec: socat: not found
ssh_exchange_identification: Connection closed by remote host
fatal: The remote end hung up unexpectedly

No corporate firewall, no "push url". The keys are configured without a problem (I can ssh into the server without password) and username and email are set too.

Foi útil?

Solução

When I look around at Google searching for socat git, I find that socat is used in order to tunnel the git:// protocol through https. The referenced post recommends to create a gitproxy script and use this script as global proxy script:

$ git config --global core.gitproxy gitproxy

I assume you somehow configured Git to use socat and it's simply not installed on your laptop computer.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top