Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting fatal error: .git/info/refs not valid: is this a git repository?

Tags:

git

gitlab

I have a git repo hosted at AWS whom im trying to preform:

git push -u origin master

I am getting the following error:

fatal: http://[URL]/[Repo-Name].git/info/refs not valid: is this a git repository?

Ive tried the answer here without any success: Git .git/info/refs not valid: is this a git repository?

fatal: .git/info/refs not valid: is this a git repository?

What will be the possible solutions over this error?

When I am using

git remote -v

I am getting:

origin  http://[URL]/test1.git (fetch)
origin  http://[URL]/test1.git (push)
like image 996
UtkarshaG Avatar asked Mar 25 '26 17:03

UtkarshaG


1 Answers

The answers you linked refer to a change in the URL. Generally it happens on locally hosted servers such as GitLab that the ports displayed differ. You might want to check what your port is, it may not be the default port(80).

like image 88
cst1992 Avatar answered Mar 27 '26 12:03

cst1992



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!