Home / Did you run git update-server-info on the server?

Did you run git update-server-info on the server?

This post looks at the error "fatal: https://domain/account/filename-plates.git/info/refs not found: did you run git update-server-info on the server?" when trying to access a git repository, doing e.g. a git pull.

Possible reasons for the error

The error is git telling you the repository could not be found. This could be because:

  1. the repository has been deleted
  2. the repository has been renamed
  3. it has been moved from one account to another at your repository provider
  4. the username has been changed at the repository provider
  5. you’ve been removed as a collaborator at the project (although you might see a different type of error in this case)

How to fix it if you’ve renamed the repository, username, etc

If you’ve renamed the repository, username or similar, then you need to update the URL in the configuration file. This is at .git/config in the project’s root.

The config file will look something like this:

	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = username@host:repo-account-name/project-name.git
[branch "master"]
	remote = origin
	merge = refs/heads/master

Update the "url =" line to the correct URL and it should fix the problem. You can also use the "git remote set-url origin [url]" command, replacing [url] with the actual URL instead of editing the configuration file directly.