git push在输入密码后挂起

git push在输入密码后挂起,git,ssl,github,gitlab,Git,Ssl,Github,Gitlab,我在一所大学工作,他们有一个gitlab页面,我们用它向学生推送材料。我过去可以很好地推送到这个回购协议,但现在在键入git push origin master并输入我的姓名和密码后,它挂起了,我被迫退出Ctr-C 我正在一台全新的机器上使用git for windows 10 我可以很好地从这个回购中退出,我已经尝试重新安装git并重新控制回购。如果我使用GIT\u CURL\u VERBOSE=1运行,我会得到: Couldn't find host (REDACTED) in the _

我在一所大学工作,他们有一个gitlab页面,我们用它向学生推送材料。我过去可以很好地推送到这个回购协议,但现在在键入
git push origin master
并输入我的姓名和密码后,它挂起了,我被迫退出Ctr-C

我正在一台全新的机器上使用git for windows 10

我可以很好地从这个回购中退出,我已经尝试重新安装git并重新控制回购。如果我使用GIT\u CURL\u 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

有人能告诉我一些信息吗?

您可能想更改密码和/或确保没有其他服务使用它,因为您刚才在问题中复制/粘贴了凭据对。我想我用“编辑”替换了所有凭据,但我现在又替换了一些字符串,以防它们很重要。日志中有纯文本base64凭据,编辑历史记录可见,因此仍然不要忘记更改密码。您是否有2FA活动?(2因素认证)仅供参考,我也遇到了类似的问题,结果证明我的stty crnl一团糟。我将遥控器更改为不包含我的用户id,并在响应用户请求时立即看到^M。
 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
origin  (REDACTED).git (fetch)
origin  (REDACTED).git (push)