Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git - unable to push into gitlab project - "unable to update URL base from redirection"

I gave this remote URL for my project.

git remote add origin https://gitlab.com/AbdullahValley/simple-crud.git

When I entered this command:

$ git push -u origin master

It gives some ERROR which I don't understand here.

fatal: unable to update URL base from redirection:
asked for: gitlab.com/AbdullahValley/Simple-CRUD.g/info/refs?service=git-receive-pack
redirect: gitlab.com/users/sign_in

like image 792
Abdullah Avatar asked Oct 29 '22 02:10

Abdullah


2 Answers

Because it's return 500 error. https://gitlab.com/

like image 89
Ruslan I. Avatar answered Nov 15 '22 05:11

Ruslan I.


This happened to me out of the blue, despite using https and apparently having the remotes set up correctly.

> git push
fatal: unable to update url base from redirection:
  asked for: https://gitlab.com/bburnskm/moveto-io.git/info/refs?service=git-receive-pack
   redirect: https://about.gitlab.com/2018/07/19/gcp-move-update/

> git remote -v
origin  https://gitlab.com/bburnskm/moveto-io.git (fetch)
origin  https://gitlab.com/bburnskm/moveto-io.git (push)

Resetting the remotes with -u fixed it -

> git push -u origin bb-ui
Enumerating objects: 40, done.
Counting objects: 100% (40/40), done.
Delta compression using up to 4 threads.
Compressing objects: 100% (29/29), done.
Writing objects: 100% (29/29), 3.85 KiB | 788.00 KiB/s, done.
Total 29 (delta 21), reused 0 (delta 0)
remote:
To https://gitlab.com/bburnskm/moveto-io.git
   7dce642..b67ffcc  bb-ui -> bb-ui
Branch 'bb-ui' set up to track remote branch 'bb-ui' from 'origin'.

Though the urls didn't change... ?

> git remote -v
origin  https://gitlab.com/bburnskm/moveto-io.git (fetch)
origin  https://gitlab.com/bburnskm/moveto-io.git (push)
like image 40
Brian Burns Avatar answered Nov 15 '22 06:11

Brian Burns