Usando o Git sob Proxy no Ubuntu

0

Eu faço o git clone usando o terminal no Ubuntu 14.04, ou seja, git clone [email protected]:myusername/myrepo.git . Antes de fazer isso, configurei o git para usar o proxy com o comando: git config --global http.proxy proxyserver:port . No entanto, recebi essa mensagem de erros ao tentar clonar meu repositório no git. Ajuda necessária.

Cloning into 'MY REPO'... ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.
    
por bagustris 08.07.2014 / 09:44

1 resposta

2

Se você estiver tentando usar uma conexão SSH com um proxy HTTP, isso não funcionará. O Github também oferece o Git sobre HTTPS. Então tente:

git clone https://github.com/myusername/myrepo.git
    
por muru 09.07.2014 / 00:05