Can't git fetch through SSH

I’ve setup a git repository one a remote server. Now I’m trying to checkout from it with:

git fetch ssh://

but I get an error:

  • GitHub - HTTPS access
  • Cannot see new files added to my git working directory
  • Git Push Error - Could not resolve host name
  • POST hook on Bitbucket
  • How to tag Docker images with a Git tag in Jenkins?
  • If I have a folder with many code snippet folders, how to avoid Git or Mercurial from committing source code in another folder?
  • fatal: Not a git repository

    What am I doing wrong? Could it be the server does not support Git+SSH?

  • modifying working directory and staging area temporarily in git pre-commit hook
  • git verify-pack and number of blobs
  • git rebase a branch which is based on several branches
  • Difference between git reset --hard and git checkout
  • Webmatrix thinks i'm my alt on github
  • Disable git repository but provide explanation on clones and pulls
  • 3 Solutions collect form web for “Can't git fetch through SSH”


    git clone ssh://

    Which will create the repository on your local machine. Any commits you make to that branch are to your local repository, and when you want to push back up to the remote server you can run:

    git push ssh://

    git fetch fails because it expects to be run from within an existing git repository. As Andy Hume notes, you must first git clone to create a local copy of an existing repo.

    Further, it defines a git remote called origin which is set to the URL that you cloned from. This is the default remote used when you type git fetch or git pull to retrieve new commits into your local repository, and the default destination when you git push to push your new local commits out to a remote repository. You do not need to include ssh:// in your push command if that is where you cloned from.

    Here are some other useful references, from

    • Pushing and pulling
    • Push only to bare repositories

    Could be the tilde ~
    Try: ssh://

    Git Baby is a git and github fan, let's start git clone.