5

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

Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
Abdullah
  • 135
  • 2
  • 14

3 Answers3

1

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

Ruslan I.
  • 23
  • 7
1

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)
Brian Burns
  • 20,575
  • 8
  • 83
  • 77
0

Do you have two factor authentication enabled within GitLab?