git push导致致命:无法从重定向更新url base:

Vya*_*lav 19 git gitlab

我确实在我的本地存储库中提交了.当我尝试做的时候:

git push https://gitlab.com/priceinsight/jmt4manager/compare/develop...2-retrieve-list-userrecord# 2-retrieve-list-userrecord -v
Run Code Online (Sandbox Code Playgroud)

我收到了这个错误:

Pushing to https://gitlab.com/priceinsight/jmt4manager/compare/develop...2-retrieve-list-userrecord#
fatal: unable to update url base from redirection:
  asked for: https://gitlab.com/priceinsight/jmt4manager/compare/develop...2-retrieve-list-userrecord#/info/refs?service=git-receive-pack
   redirect: https://gitlab.com/users/sign_in
Run Code Online (Sandbox Code Playgroud)

Vam*_*ire 19

您尝试推送的网址完全是胡说八道.您正在尝试推送到URL https://gitlab.com/priceinsight/jmt4manager/compare/develop...2-retrieve-list-userrecord#,该URL 是比较两个分支而不是存储库的URL的网页.存储库将是https://gitlab.com/priceinsight/jmt4manager.


Nos*_*All 12

我知道你的答案已经解决了,但我自己也遇到了一个非常类似的问题,网址是无意义的。对我来说实际的问题是我还没有登录到公司的互联网,所以 git 以某种方式通过某种互联网登录页面被重定向,但未能通过。

这种情况下的修复很简单:在尝试git push更改之前,只需在单独的浏览器中登录即可。

  • 感谢您发布此内容。它节省了我一些时间:) (7认同)