Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to debug git' 'fatal: Could not read from remote repository'
    primarykey
    data
    text
    <p>I'm trying to setup git for the first time. </p> <p>I have a VPS from Linode running Ubuntu 12.04, and my own desktop on Windows 7. <strong>I am using Git Bash on my desktop</strong>.</p> <p>On my local windows machine I created a directory, used <code>git init</code>, added a test file, and committed it.</p> <p>On the linux server, I installed git, then created the directory </p> <p><code>/srv/git/site.git</code> </p> <p>I then used the command</p> <p><code>/srv/git/site.git git init --bare</code>.</p> <p>Finally, back on the local windows machine, I use</p> <p><code>git remote add mysite ssh://root@11.123.123.123/srv/git/site.git</code> </p> <p>(IP changed for security reasons). </p> <p>all is well up until this point. </p> <p>I finally try to push by using</p> <p><code>git push -u mysite +master:refs/heads/master</code>.</p> <p>This command gives me the error</p> <pre><code>fatal: 'root@11.123.123.123/srv/git/site.git' does not appear to be a git repository fatal: Could not read from remote repository` </code></pre> <p>I've checked the IP and user name used for my SSH login, and they are right. In fact, just using PuTTY I can login using the same root@IP address. </p> <p>I'm banging my head against the wall here. I would really appreciate it if someone could provide tips for debugging this. Is there a connection log where I can see the actual 'ssh' command Git Bash is executing? </p> <p>Is the problem that it can't connect to the server, or the specific folder? </p> <p>Does Git Bash use a different default directory than / ? Do I need a new user for git? </p> <p><strong>If it matters, I haven't yet applied any hooks. I will eventually need to use a send-receive hook from my /srv/git/site.git to the actual website HTML located in /srv/www/site.com/public_html.</strong></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload