Git push gives fatal: Can't update url base from redirect:

I have executed successfully on my local repository. When I try to do:

git push https://gitlab.com/priceinsight/jmt4manager/compare/develop...2-retrieve-list-userrecord# 2-retrieve-list-userrecord -v

      

I got this error:

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

      

+11


source to share


3 answers


The URL you are trying to click is complete nonsense. You are trying to push to a URL https://gitlab.com/priceinsight/jmt4manager/compare/develop...2-retrieve-list-userrecord#

, which is a webpage that compares the two branches, not the repository URL. The repository will be https://gitlab.com/priceinsight/jmt4manager

.



+11


source


I realize your answer has already been resolved, but I had a very similar problem with a meaningless url. The real problem for me was that I hadn't logged into the internet company yet, so git was somehow redirected through some internet login page and couldn't get through.



The fix in this case is simple: just log into a separate browser before attempting git push

changes.

0


source


I have the same problem, I tried to run this git clone https://youtu.be/vJDkVdSz_0I but give this error

-1


source







All Articles