问题与先前提出的关于认证问题的问题无关。在这种情况下,我能够进行身份验证,但接下来出现问题..
我将remote origin
设为:
git remote set-url origin https://developer@10.10.1.32/gitblit-1.6.0/r/RemovalTool.git
然后:
GIT_CURL_VERBOSE=1 git push -u origin master
我正在
> [root@devel]# git push -u origin master error: The requested URL
> returned error: 403 while accessing
> https://developer@10.10.1.32/gitblit-1.6.0/r/RemovalTool.git/info/refs
>
> fatal: HTTP request failed [root@devel]# GIT_CURL_VERBOSE=1 git push
> -u origin master
> * Couldn't find host 10.10.1.32 in the .netrc file; using defaults
> * About to connect() to proxy 10.10.1.31 port 3128 (#0)
> * Trying 10.10.1.31... * Connected to 10.10.1.31 (10.10.1.31) port 3128 (#0)
> * Establish HTTP proxy tunnel to 10.10.1.32:443
> > CONNECT 10.10.1.32:443 HTTP/1.1 Host: 10.10.1.32:443 User-Agent: git/1.7.1 Proxy-Connection: Keep-Alive Pragma: no-cache
>
> < HTTP/1.0 403 Forbidden < Server: squid < Mime-Version: 1.0 < Date:
> Mon, 20 Jul 2015 06:27:19 GMT < Content-Type: text/html <
> Content-Length: 3153 < X-Squid-Error: ERR_ACCESS_DENIED 0 < Vary:
> Accept-Language < Content-Language: en < X-Cache: MISS from proxy-vpn
> < X-Cache-Lookup: NONE from proxy-vpn:3128 < Proxy-Connection:
> keep-alive <
> * The requested URL returned error: 403
> * Connection #0 to host 10.10.1.31 left intact
> * Couldn't find host 10.10.1.32 in the .netrc file; using defaults
> * About to connect() to proxy 10.10.1.31 port 3128 (#1)
> * Trying 10.10.1.31... * Connected to 10.10.1.31 (10.10.1.31) port 3128 (#1)
> * Establish HTTP proxy tunnel to 10.10.1.32:443
> > CONNECT 10.10.1.32:443 HTTP/1.1 Host: 10.10.1.32:443 User-Agent: git/1.7.1 Proxy-Connection: Keep-Alive Pragma: no-cache
>
> < HTTP/1.0 403 Forbidden < Server: squid < Mime-Version: 1.0 < Date:
> Mon, 20 Jul 2015 06:27:20 GMT < Content-Type: text/html <
> Content-Length: 3153 < X-Squid-Error: ERR_ACCESS_DENIED 0 < Vary:
> Accept-Language < Content-Language: en < X-Cache: MISS from proxy-vpn
> < X-Cache-Lookup: NONE from proxy-vpn:3128 < Proxy-Connection:
> keep-alive <
> * The requested URL returned error: 403
> * Connection #1 to host 10.10.1.31 left intact error: The requested URL returned error: 403 while accessing
> https://developer@10.10.1.32/gitblit-1.6.0/r/RemovalTool.git/info/refs
>
> fatal: HTTP request failed
我100%确定我提供的密码是正确的。我也能够建立到10.10.1.32 443
的telnet连接,所以在这种情况下连接问题不是一个想法。任何人都可以给我一个暗示我错过了什么?
答案 0 :(得分:0)
看起来git-repository的所有者未将您添加到协作者中!