Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this mean? Cannot get remote repository information. Perhaps git-update-server-info needs to be run there?

Tags:

git

What does this mean? Cannot get remote repository information. Perhaps git-update-server-info needs to be run there?

git clone http://projects.iplantcollaborative.org/public/FoundationalAPI/SampleCode
Initialized empty Git repository in /homes/user/SampleCode/.git/
Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?
like image 336
user1011332 Avatar asked Nov 30 '11 00:11

user1011332


People also ask

How do I find my remote Git repository?

To view your remote branches, simply pass the -r flag to the git branch command. You can inspect remote branches with the usual git checkout and git log commands. If you approve the changes a remote branch contains, you can merge it into a local branch with a normal git merge .

How do you fix fatal could not read from remote repository please make sure you have the correct access rights and the repository exists?

The Git “fatal: Could not read from remote repository” error occurs when there is an issue authenticating with a Git repository. This is common if you have incorrectly set up SSH authentication. To solve this error, make sure your SSH key is in your keychain and you connecting to a repository using the correct URL.

How do I change my origin remote?

Change Git Remote URL For example, let's say that you want to change the URL of your Git origin remote. In order to achieve that, you would use the “set-url” command on the “origin” remote and you would specify the new URL. Congratulations, you successfully changed the URL of your Git remote!

How do I change my github remote?

Switching remote URLs from HTTPS to SSH Change the current working directory to your local project. List your existing remotes in order to get the name of the remote you want to change. Change your remote's URL from HTTPS to SSH with the git remote set-url command. Verify that the remote URL has changed.


2 Answers

As noted by others there are two problems.

  1. The URL does not point to a Git archive.
  2. Even if it did, you might receive the same warning using old versions of Git.

If you are disinclined to update Git because you are working on someone else's cluster (a guess, because of the iPlant links), try replacing git clone http://... with git clone git://.... This worked for me using Git 1.5.5.6 on Lonestar at TACC (an iPlant HPC resource).

like image 188
pbot Avatar answered Sep 25 '22 15:09

pbot


Try updating the version of Git that you are using locally. This is usually a problem with the older dumb HTTP protocol. If that doesn't fix it, and if you have control over the server, see the version of git on it and the setup for HTTP serving of the repo. It should be using smart HTTP. There is no point in using the older dumb HTTP protocol. See if you can update the git version on the server and have it setup with smart HTTP.

like image 36
manojlds Avatar answered Sep 21 '22 15:09

manojlds