我确实在本地存储库中成功地提交了。当我试着做:
git push https://gitlab.com/priceinsight/jmt4manager/compare/develop...2-retrieve-list-userrecord# 2-retrieve-list-userrecord -v
我发现了一个错误:
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
发布于 2017-05-07 21:33:46
您试图推送到的URL完全是胡说八道。您正在尝试推送到URL,这是一个比较两个分支而不是存储库的https://gitlab.com/priceinsight/jmt4manager/compare/develop...2-retrieve-list-userrecord#
的网页。存储库将是https://gitlab.com/priceinsight/jmt4manager
。
发布于 2019-06-12 17:56:39
我知道你的答案已经解决了,但我自己也有一个非常类似的问题,一个无稽之谈的URL。对我来说,实际的问题是我还没有登录到公司的互联网上,所以git被某种方式通过某种互联网登录页面重定向,并且没有通过。
本例中的修复很简单:在尝试git push
更改之前,只需在单独的浏览器中登录即可。
发布于 2020-06-27 16:13:44
您需要执行以下两个步骤:
https://stackoverflow.com/questions/43835309
复制相似问题