git在身份验证后挂起获取

git在身份验证后挂起获取,git,clone,Git,Clone,这是我的git配置文件内容: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = http://myusername:mypassword@192.168.1.30/git/dpi.phorcys.git fetch = +refs/heads/*:refs/remotes/origin/* [bra

这是我的git配置文件内容:

[core]
  repositoryformatversion = 0 
  filemode = true
  bare = false
  logallrefupdates = true
[remote "origin"]
  url = http://myusername:mypassword@192.168.1.30/git/dpi.phorcys.git
  fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
  remote = origin
  merge = refs/heads/master
[branch "develop"]
  remote = origin
  merge = refs/heads/develop    
昨天我面临的问题是,我再也找不到我的一根树枝了

ebrahim@ubuntu:~/phorcys/dpi.phorcys$ git fetch origin master
From http://192.168.1.30/git/dpi.phorcys
 * branch            master     -> FETCH_HEAD
ebrahim@ubuntu:~/phorcys/dpi.phorcys$ git fetch origin develop
^C
ebrahim@ubuntu:~/phorcys/dpi.phorcys$ 
正如您在上面看到的,我成功地获取了
master
,但是对于
develope
分支,git卡在那里,我需要hist-ctrl+c

我在尝试获取我的开发分支时捕获了网络流量,您可以在下面看到相应的网络流量:

GET /git/dpi.phorcys.git/info/refs?service=git-upload-pack HTTP/1.1
Host: 192.168.1.30
User-Agent: git/2.9.3
Accept: */*
Accept-Encoding: gzip
Accept-Language: en-US, *;q=0.9
Pragma: no-cache

HTTP/1.1 401 Authorization Required
Date: Thu, 01 Jun 2017 09:58:19 GMT
Content-Type: text/html; charset=iso-8859-1
Content-Length: 344
Connection: keep-alive
Keep-Alive: timeout=900
WWW-Authenticate: Basic realm="Peygir"
Vary: Accept-Encoding
Content-Encoding: gzip
Server: Peygir

..........u..K.0....W.{q.M.*2!..Vq0uh}.1k.5.%5I.....M.E......./.l.</...<..+X....s.]
.,.{!.....x"D.4......e.JS.Ml0.NR.u.v.|.h......G-.q.IqP.....I....b.........C..F.u..2.=.ZE.]..GP'.j..TUa.4..]...F.    .!...........m. ...wv.*.@
...c.[~....U!.....p..g...d...`.#tV..QY
...N...
..X...K..Ix....\..VU5....`...Qv....h..6......*......4...@9.....ob?........GET /git/dpi.phorcys.git/info/refs?service=git-upload-pack HTTP/1.1
Host: 192.168.1.30
Authorization: Basic ZS5naGFzZW1pOmVicmFoaW1naGFzZW1p
User-Agent: git/2.9.3
Accept: */*
Accept-Encoding: gzip
Accept-Language: en-US, *;q=0.9
Pragma: no-cache

HTTP/1.1 200 OK
Date: Thu, 01 Jun 2017 09:58:19 GMT
Content-Type: application/x-git-upload-pack-advertisement
Transfer-Encoding: chunked
Connection: keep-alive
Keep-Alive: timeout=900
Expires: Fri, 01 Jan 1980 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, max-age=0, must-revalidate
Server: Peygir

1e
001e# service=git-upload-pack

4
0000
a3
00a3075559c660457bcddb7b4ad038d1562f10f260ac HEAD.multi_ack thin-pack side-band side-band-64k ofs-delta shallow no-progress include-tag multi_ack_detailed no-done

40
0040916af59346d53d7958c4d2f83bde80911b4bd578 refs/heads/develop

3f
003f075559c660457bcddb7b4ad038d1562f10f260ac refs/heads/master

4
0000
0

POST /git/dpi.phorcys.git/git-upload-pack HTTP/1.1
Host: 192.168.1.30
Authorization: Basic ZS5naGFzZW1pOmVicmFoaW1naGFzZW1p
User-Agent: git/2.9.3
Accept-Encoding: gzip
Content-Type: application/x-git-upload-pack-request
Accept: application/x-git-upload-pack-result
Content-Length: 224

006fwant 075559c660457bcddb7b4ad038d1562f10f260ac multi_ack_detailed no-done side-band-64k thin-pack ofs-delta
0032want 916af59346d53d7958c4d2f83bde80911b4bd578
0032want 075559c660457bcddb7b4ad038d1562f10f260ac
00000009done
HTTP/1.1 200 OK
Date: Thu, 01 Jun 2017 09:58:19 GMT
Content-Type: application/x-git-upload-pack-result
Content-Length: 0
Connection: keep-alive
Keep-Alive: timeout=900
Expires: Fri, 01 Jan 1980 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, max-age=0, must-revalidate
Server: Peygir
GET/git/dpi.phorcys.git/info/refs?service=git上传包HTTP/1.1
主机:192.168.1.30
用户代理:git/2.9.3
接受:*/*
接受编码:gzip
接受语言:en-US,*;q=0.9
Pragma:没有缓存
需要HTTP/1.1 401授权
日期:2017年6月1日星期四09:58:19 GMT
内容类型:text/html;字符集=iso-8859-1
内容长度:344
连接:保持活力
保持活动状态:超时=900
WWW-Authenticate:Basic-realm=“Peygir”
改变:接受编码
内容编码:gzip
服务器:Peygir

…….K.0….W.{Q.M* 2!.VQ0uH}。1K。5。%5i…M.E…./.L.你使用的Git版本是什么?Git版本2.93.请将Git版本更新到2.3.0,并再次检查。使用
sudo-apt-get-update
@LuFFy,我更新了git客户端,并再次尝试获取开发分支。它返回
致命:远程端意外挂起
运行此命令
git remote add originhttp://myusername:mypassword@192.168.1.30/git/dpi.phorcys.git
请重试