• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
The Electric Toolbox Blog

The Electric Toolbox Blog

Linux, Apache, Nginx, MySQL, Javascript and PHP articles

  • Applications
  • FCKEditor
  • Apache
  • Windows
  • Contact Us
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:

[core]
	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.

Check Out These Related posts:

  1. Git Rename Branch
  2. Master master replication with MySQL
  3. Scp command
  4. How to change the remote url for your local git repository

Filed Under: Applications

Primary Sidebar

Categories

  • Apache
  • Applications
  • Article
  • Case Studies
  • Email Servers
  • FCKEditor
  • HTML And CSS
  • Javascript
  • Linux/Unix/BSD
  • Microsoft SQL Server
  • Miscellaneous Postings
  • MySql
  • Networking
  • Nginx Web Server
  • Offsite Articles
  • OSX
  • PHP
  • Quick Tips
  • RFC – Request for Comments
  • SilverStripe
  • VMWare
  • VPN
  • Windows
  • WordPress

Recent Posts

  • Vim Show Line Numbers
  • Add User To Group Linux
  • Chmod 777 Tutorial
  • How to Copy Directory Linux
  • Linux create user

Copyright © 2021. ElectricToolBox. All Rights Reserved.

  • Contact Us
  • Copyright Info
  • Privacy Policy
  • Sitemap