Problem with git removing remote control behind proxy server

To establish the context, I am trying to use toto to customize my blog.
I did

$ sudo gem install toto

and the gems were set correctly.

Successfully installed rdiscount-1.6.8
Successfully installed toto-0.4.9
2 gems installed

After that i tried

$ git clone git://github.com/cloudhead/dorothy.git myblog

but i get the following error

Cloning into myblog...
github.com[0: 207.97.227.239]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)

My git http proxy settings

jatin@jatin-ubuntu:~/myblog$ git config --global http.proxy
http://proxy:port

My http_proxy settings are also correct.

jatin@jatin-ubuntu:~$ echo $http_proxy
http://proxy:port/

So, I replaced git with http, as

$ git clone http://github.com/cloudhead/dorothy.git myblog

and it worked.

Now when i do the following

$ cd myblog
$ heroku create myblog

it works so far and i get

Creating myblog...... done
Created http://myblog.heroku.com/ | git@heroku.com:myblog.git
Git remote heroku added

But this will not work here:

$ git push heroku master

and the following error appears

ssh: connect to host heroku.com port 22: Connection timed out
fatal: The remote end hung up unexpectedly

I did not know what to do, so after Googling I discovered that you cannot make changes to github using http.
With further digging, I found this link

how-to-use-the-git-protocol-through-a-http-connect-proxy

, - CONNECT 9418, , git.

-, , netcat-openbsd socat .

, , , . , , .

+3
3

heroku, URL git@heroku.com:myblog.git. , heroku create.

, SSH. , : ( git) ssh heroku.com, - () . git push heroku master , Github, git Heroku. Github, git push origin master ssh, http . git:// pushing changesets, -.

Heroku, -, SSH git , , Github (. Push from github to heroku ). , Heroku, heroku.com SSH .

+6

, SSH. , , , SSH, , , , . , .

My suggestion would be for you to develop locally, and then move on to some kind of public access point to push the changes to Heroku (like Starbucks).

+1
source

Source: https://habr.com/ru/post/1790822/


All Articles