どんなプからのGitリポジトリを通じて、HTTPプロキシ?
-
02-07-2019 - |
質問
注意:の使用例に記載の利用submodules内には、プロジェクトの同じように通常の git clone
のリポジトリ上HTTP.
いプロジェクトGitます。い追加のサブモジュール:
git submodule add http://github.com/jscruggs/metric_fu.git vendor/plugins/metric_fu
ん
...
got 1b0313f016d98e556396c91d08127c59722762d0
got 4c42d44a9221209293e5f3eb7e662a1571b09421
got b0d6414e3ca5c2fb4b95b7712c7edbf7d2becac7
error: Unable to find abc07fcf79aebed56497e3894c6c3c06046f913a under http://github.com/jscruggs/metri...
Cannot obtain needed commit abc07fcf79aebed56497e3894c6c3c06046f913a
while processing commit ee576543b3a0820cc966cc10cc41e6ffb3415658.
fatal: Fetch failed.
Clone of 'http://github.com/jscruggs/metric_fu.git' into submodule path 'vendor/plugins/metric_fu'
私HTTP_PROXY設
c:\project> echo %HTTP_PROXY%
http://proxy.mycompany:80
もにグローバルなGitの設定のためのhttpプロキシ:
c:\project> git config --get http.proxy
http://proxy.mycompany:80
ではもっHTTPを取り出しを一貫して作業を代行?何が本当に不思議は少数のプロジェクト試作(awesome_nested_set
例えば)、その他一貫して失敗す(レール など)を行います。
解決 3
かったた設定を http_proxy
環境変数となります。ていきました HTTP_PROXY
正しくはgitでのご利用のホームページ版です。
他のヒント
ように設定することもできますのHTTPプロキシとGitに用いる地球構成物 http.proxy
:
git config --global http.proxy http://proxy.mycompany:80
認証の代理:
git config --global http.proxy http://mydomain\\myusername:mypassword@myproxyserver:8080/
信用リスクが @EugeneKulabuhov や @JaimeReynoso の認証形式です。)
があり答えています。しかし、って思ったけど、やっぱチップとしてもプロキシサーバを必要とする認証ユーザー Idおよびパスワードを入力します。このことのできることができる。●
そのため、たとえば、プロキシサーバの設定は、
Server: myproxyserver
Port: 8080
Username: mydomain\myusername
Password: mypassword
その後、追加のご .gitconfig
ファイルを以下のコマンド:
git config --global http.proxy http://mydomain\\myusername:mypassword@myproxyserver:8080
気にしない https
.して、指定されたプロキシサーバがサポートhttp、https、そしてあるエントリの設定ファイルは言わずもがなである。
を確認するためのコマンドの入力を .gitconfig
ファイルの成功によって cat .gitconfig
:
では、ファイルの終わりでエントリとして
[http]
proxy = http://mydomain\\myusername:mypassword@myproxyserver:8080
しようとしています。
うしましょうmingwをコンパイルのGit windowsの場合(またはその疑いのあるも聞いたことがない"と明言を避け).そこにはデバッグすいすべてのhttpプロキシの作業のためのgitによるカール.この環境変数の実行前にgit:
GIT_CURL_VERBOSE=1
このとるべきでしょう考えがあるコンプライアンス-
また利用プロキシに指定されたリポジトリとなるその他のリポジトリ望の方は、 -c, --config <key=value>
し、計算を実行します。 git clone
るリポジトリ例えば
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git --config "http.proxy=proxyHost:proxyPort"
際ネットワークチームはssl検査による書き換え証明書を用いてhttpのurlの代わりにhttps一つは、この設定をするこvarた。
git config --global http.proxy http://proxy:8081
きもの 編集できるようになります。gitconfigファイル ホ%userprofile%ディレクトリWindowsシステム(メモ帳%userprofile%.gitconfig や~ディレクトリはLinuxシステム(vi~/.gitconfig) 追加http部 しています。
コンテンツです。gitconfigファイル:
[http]
proxy = http://proxy.mycompany:80
ことを義務付けられているものの場合Windowsの場合、設定HTTPS_PROXYし、または取得によhttps URL。に努めます。
私にとってのgit://だん仕事を通じて、プロキシは、https://です。これによりビットの頭痛んでいたので、走るスクリプトの全て使用されるgit://いいんだけで簡単に変更します。しかし、この逸品
git config --global url."https://github.com/".insteadOf git://github.com/
見たいもの http.proxy
も GIT_PROXY_COMMAND
仕事のための私の認証http行います。プロキシはリガのいずれかです。ものを見たい方に動作します。
- 設置 ット予約の欠点, その他の代替しています。
をauthfile.用フォーマットを
authfile
:user_name:password
, は、user_name
,password
はユーザー名とパスワードにアクセス行います。の作成などのファイル、実行コマンドのようになります:echo "username:password" > ~/.ssh/authfile
.編集
~/.ssh/config
, っていることを確認してください、その許可が644
:chmod 644 ~/.ssh/config
取github.com 例としての以下の行を追加 ~/.ssh/config
:
Host github.com
HostName github.com
ProxyCommand /usr/local/bin/corkscrew <your.proxy> <proxy port> %h %p <path/to/authfile>
User git
現できない git@github.com
, での使用のプロキシさい。簡単にこのように Bitbucket しています。
この優雅などのその他のアプローチで作品のような魅力です。
Windowsをしたいという場合などに入れるお客様のパスワードです。gitconfigはプレーンテキストを使用でき
が私の口座に対する通常のもWindows NTLMプロキシを開始localhost-代理せずに認証を行います。
を得るためにも実行します:
- イCntml
- 設定Cntmlによる文書その場合には、プロキシ認証
点git新しいlocalhost任代理人
[http] proxy = http://localhost:3128 # change port as necessary
私にとって何がうまくいったのとおり:
sudo apt-get install socat
ファイルを作成しお$BIN_PATH/gitproxy:
#!/bin/sh
_proxy=192.168.192.1
_proxyport=3128
exec socat STDIO PROXY:$_proxy:$1:$2,proxyport=$_proxyport
ぜでの実行権限
chmod a+x gitproxy
走り、以下のコマンドの設定環境:
export PATH=$BIN_PATH:$PATH
git config --global core.gitproxy gitproxy
ただこのとって初の結果、このブログから問題を解決しうる最新のカール証を授与されます。
http://www.simplicidade.org/notes/archives/2011/06/github_ssl_ca_errors.html
プロキシの設定をgit
コマンド
git config --global http.proxy http://user:password@domain:port
例
git config --global http.proxy http://clairton:123456@proxy.clairtonluz.com.br:8080
このためでした。
git config --global http.proxy proxy_user:proxy_passwd@proxy_ip:proxy_port
また、同じ問題となる問題の修正 再生GIT HTTP支援
の git:
プロトコルな仕事を通じて企業ファイアウォール.
例えば、このタイムアウト:
git clone git://github.com/miksago/node-websocket-server.git
curl github.com
作品は、イブレア城、イブレア大がわかってい http_proxy
環境変数に通知するものとします。
を使ってみました http
, のように下がってすぐにエラーとなります。
git clone http://github.com/miksago/node-websocket-server.git
->>> fatal: Unable to find remote helper for 'http' <<<-
また再コンパイルを伴gitはこのように:
./configure --with-curl --with-expat
ものに致命的なエラーです。
最後に、後悔しい時間を拝読させていただきました設定ファイル びっこ:
#Define CURLDIR=/foo/barがカールヘッダおよびライブラリファイルに
#/foo/bar/include/foo/bar/libディレクトリが入っています。
思い出ししなくてはならないので遵守 curl
ソースからなって
のヘッダファイルです。だいませんでした。この問題です。くなかった文句のヘッダファイルです。なので
なかったことに気 --with-curl
オプションは何もしていないので、実際にはデフォルトのマ版 git
).
かったので修理してください:
追加のヘッダを必要とられる体制を整えています:
yum install curl-devel (expat-devel-1.95.8-8.3.el5_5.3.i386 was already installed).
除
git
から/usr/local
(なっていただきたいと思い、新規インストール生存在しない場合には、代わりに私は単に除去
git*
から/usr/local/share
や/usr/local/libexec
検索に含dirsを含む
curl
やexpat
ヘッダファイル、そしてできないと思いますが、私を通じてconfigure
付加することで、環境はこのように:export CURLDIR=/usr/include export EXPATDIR=/usr/include
走
configure
以下のオプションを選択できますが、再度記載されたものconfigure
ファイルの中身そのものになったもののデフォルトなどのタッチパネル:./configure --with-curl --with-expat
在
http
作git
を通じて企業ファイアウォール:git clone http://github.com/miksago/node-websocket-server.git Cloning into 'node-websocket-server'... * Couldn't find host github.com in the .netrc file, using defaults * About to connect() to proxy proxy.entp.attws.com port 8080 * Trying 135.214.40.30... * connected ...
利用できる:
git config --add http.proxy http://user:password@proxy_host:proxy_port
設定Git資格になります。ヘルパーをwincred.
git config --global credential.helper wincred
があることを確認し1資格になります。ヘルパー
git config -l
がある場合は1以上でセットされないwincred取り外してください。
git config --system --unset credential.helper
現在の設定をプロキシの無いパスワードになります。
git config --global http.proxy http://<YOUR WIN LOGIN NAME>@proxy:80
チェックすべての設定を追加してしまったんじゃないでしょうか。...
git config --global -l
今す。
$http_proxyは http://github.com....$https_proxyは https://github.com...
Windows
後藤-->C:/Users/user_name/gitconfig
更新gitconfigのファイルに以下の内容
[http]
[https]
proxy = https://your_proxy:your_port
[http]
proxy = http://your_proxy:your_port
確認方法に使用されているプロキシサーバとポート番号とは?
Internet Explorer->設定->インターネットオプション->接続->LANの設定
んのプロキシを使用https...一部のプロキシなどの見所もチェックのhttps.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
c:\git\meantest>git clone http://github.com/linnovate/mean.git
Cloning into 'mean'...
fatal: unable to access 'http://github.com/linnovate/mean.git/': Failed connect
to github.com:80; No error
c:\git\meantest>git clone https://github.com/linnovate/mean.git
Cloning into 'mean'...
remote: Reusing existing pack: 2587, done.
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (24/24), done.
rRemote: Total 2614 (delta 3), reused 4 (delta 0)eceiving objects: 98% (2562/26
Receiving objects: 100% (2614/2614), 1.76 MiB | 305.00 KiB/s, done.
Resolving deltas: 100% (1166/1166), done.
Checking connectivity... done
上記の答えたくなった時の代理は必要ありません認証を行います。ご利用の場合はプロキシを必要としている事実が認証してみるのも良いでしょうCCProxy.私は小さなチュートリアルの設定方法につきましてもここまで
http://blog.praveenkumar.co.in/2012/09/proxy-free-windows-xp78-and-mobiles.html
この押し引き、新しいレポ.べただけます。くださいクリーンアンインストール、再インストールの新バージョンが直面する課題を扱うと思います。
このた回答をさせていただき多くのこん Winodws ユーザがプロキシとauth.
再インストール(最初に失敗したい削除).
Goto ->
**Windows**
1. msysgit\installer-tmp\etc\gitconfig
Under [http]
proxy = http://user:pass@url:port
**Linux**
1. msysgit\installer-tmp\setup-msysgit.sh
export HTTP_PROXY="http://USER:PASS@proxy.abc.com:8080"
まず特別のcharユーザ/パス利用 url_encode
として@user2188765既に指摘のみを差し替え git://
プロトコルのリポジトリ http[s]://
.参照 この答え