ローカルのgitlabなど踏み台サーバ経由でアクセスするようなクローズドなgit環境からghq getしたいときの書き方です
https://<ホスト名>/gitlab/<親の名前>/<リポジトリ名>/tree/master
にアクセスしたいとき、
下記のコマンドをたたく
ghq get git@<ホスト名>:<親の名前>/<リポジトリ名>.git
事前に~/.ssh/configに下記のように書いておく
~/.ssh/config
Host <ホスト名>
HostName <ホスト名>
Port 22
IdentityFile ~/.ssh/id_rsa
User git
ProxyCommand ssh -qCW %h:%p <踏み台接続名>
Host <踏み台接続名>
HostName <踏み台サーバのIPアドレス>
Port 22
IdentityFile ~/.ssh/id_rsa
User <あなたのユーザ名>