Can't clone repo using git clone git://… – ok with git clone http://

Git newbie here. I’m setting up git on a new Ubuntu VM and trying to clone some repos. The clone works for the following command:

git clone

(after prompt for username/password), but fails for

  • How can I see the most recent tagged commits in my repository?
  • How can I use git for projects templates?
  • How can I let Git push/pull through Windows 7 Firewall?
  • Git changes being lost - why?
  • IntelliJ Diff Tool in SourceTree
  • How to .gitignore all files/folder in a folder, but not the folder itself?
  • git clone git://

    and also

    git clone git://

    with the same error message:

    Cloning into 'repo_name'...
    fatal: remote error:
    Repository not found

    Of course the obvious answer is “use the http method”, but I’m trying to understand why one works and the other doesn’t. Any suggestions? (also is there any difference when using the .git extension on the repo name btw?)


  • how to remove unwanted files from maven project
  • In Git, how can I list all files that exist in branch A that do not exist in branch B
  • How to prepend the past to a git repository?
  • Why do I get merge conflicts when bumping the version?
  • Unable to import git in python
  • How do you set the 16 Terminal Colors for Git-Bash?
  • 3 Solutions collect form web for “Can't clone repo using git clone git://… – ok with git clone http://”

    Well, I think you are using the wrong url in your second case

    Try this instead

    git clone

    The difference is the : in the url when using git@ vs the / you are currently using, and the extra .git at the end.

    This should be the same url if you go to github and select the ssh url for cloning (and not the https one selected by default)

    If this is a private repository, you need to add your machine’s ssh public key to you account under otherwise you will get the exact error you are listing here.

    I just wanted to throw out there that my problem was the network. All of my settings were good. I was told the network didn’t filter or block ports or anything, but after trying everything I could think of and everything I could find online; I finally tethered my laptop to my mobile phone and everything started working just fine.

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