我正在为一所大学工作,他们有一个gitlab页面,我们使用该页面将材料推送给学生。我曾经能够很好地推送到该存储库,但是现在输入git push origin master
并输入我的名称和密码后,它挂起了,我被迫Ctr-C退出。
我在全新计算机上将git用于Windows 10。
我可以从该存储库中提取数据,并且尝试重新安装git并重新克隆该存储库。如果我使用GIT_CURL_VERBOSE = 1运行,我将得到:
Couldn't find host (REDACTED) in the _netrc file; using defaults
* Trying (HOST IP)...
* TCP_NODELAY set
* Connected to (REDACTED) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none
* SSL connection using TLSv1.2 / (REDACTED)
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=(REDACTED)
* start date: Jan 9 04:42:49 2019 GMT
* expire date: Apr 9 04:42:49 2019 GMT
* subjectAltName: host "(REDACTED)" matched cert's REDACTED
* issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle REDACTED)
> GET (REDACTED).git/info/refs?service=git-receive-pack HTTP/2
Host: (REDACTED)
User-Agent: git/2.20.1.windows.1
Accept: */*
Accept-Encoding: deflate, gzip
Pragma: no-cache
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 401
< server: nginx
< date: Sat, 09 Feb 2019 01:00:53 GMT
< content-type: text/plain; charset=utf-8
< content-length: 26
< cache-control: no-cache
< www-authenticate: Basic realm="GitLab"
< x-content-type-options: nosniff
< x-frame-options: DENY
< x-request-id: REDACTED
< x-runtime: REDACTED
< x-ua-compatible: IE=edge
< x-xss-protection: 1; mode=block
<
* Connection #0 to host (REDACTED) left intact
然后提示输入用户名和密码,我输入它们,然后
Found bundle for host (REDACTED): REDACTED [can multiplex]
* Re-using existing connection! (#0) with host (REDACTED)
* Connected to (REDACTED) port 443 (#0)
* Server auth using Basic with user (REDACTED)
* Using Stream ID: 3 (easy handle REDACTED )
> GET (REDACTED).git/info/refs?service=git-receive-pack HTTP/2
Host: (REDACTED)
Authorization: Basic (REDACTED)
User-Agent: git/2.20.1.windows.1
Accept: */*
Accept-Encoding: deflate, gzip
Pragma: no-cache
< HTTP/2 200
< server: nginx
< date: Sat, 09 Feb 2019 01:05:58 GMT
< content-type: application/x-git-receive-pack-advertisement
< content-length: 195
< cache-control: no-cache
< strict-transport-security: max-age=31536000
<
* Connection #0 to host (REDACTED) left intact
这是它的挂起位置。当我查看任务管理器时,git进程仍在运行。
$ git status
返回您期望的结果
$ git pull
返回Already up to date
$ git remote -v
返回:
origin (REDACTED).git (fetch)
origin (REDACTED).git (push)
谁能给我一些见识?