No announcement yet.

New Remote Repository Problem

  • Filter
  • Time
  • Show
Clear All
new posts

  • New Remote Repository Problem

    I've created a remote repository (/usr/git/StokerOS.git) using:

    git --bare init

    I have SSH working on my local host so that no password is required and using port 26.

    <this works fine>

    I set the URL:

    git remote set-url origin

    The problem occurs when I try to push:

    git push --set-upstream origin master

    fatal: '' does not appear to be a git repository
    fatal: Could not read from remote repository.

    This seems to me to be a connection issue since the response comes back instantly. It does not seem to me to have taken enough time to even log in to the remote. I am guessing git is failing to connect to the remote host rather than actually trying to access that directory. Does git use SSH differently than from command line? How can I debug this? TIA.

  • #2
    Never mind. It is the git syntax that is non-standard for SSH.

    A colon ':' needs to follow the host name, not a slash '/'.