Error: https://hostname/user/repo.git/info/refs not found: did you run gitupdate-server-info on the server?

Check your Git version

There's no minimum Git version necessary to interact with GitHub Enterprise, but we've found version 1.7.10 to be a comfortable stable version that's available on many platforms. You can always download the latest version on the Git website.

Ensure the remote is correct

The repository you're trying to fetch must exist on your GitHub Enterprise instance, and the URL is case-sensitive.

You can find the URL of the local repository by opening the command line and
typing git remote -v: