Error in git push heroku master through ssh behind proxy

后端 未结 2 1267
长发绾君心
长发绾君心 2020-12-01 19:24

Brief Context:
Hi, I am a university student (behind proxy 10.3.100.211:8080), new to ROR, Git & Heroku and have been following Ruby on Rails tutori

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 19:43

    In your .ssh/config write this :

    Host git_heroku
      Hostname heroku.com
      User git
      ProxyCommand corkscrew 10.3.100.211 8080 %h %p
      Port 443
    

    and in your .git/config change

    git@heroku.com
    

    to

    git_heroku
    

    The full line for a remote will look something like:

    [remote "appname"]
      url = git_heroku:appname.git
      fetch = +refs/heads/*:refs/remotes/appname/*
    

    git_heroku is an alias; you need to change your git config to use that alias.

提交回复
热议问题