Unable to clone Git repository using Visual Studio Online

07
2014-07
  • Mikael Dúi Bolinder

    I'm trying to clone WinJS to my Azure Web Site using Visual Studio Online "Monaco". When I type git clone https://github.com/winjs/winjs.git in the online console I get the error Can only clone a git repository to the root of the workspace..

    The "prefix" in the console is / $ so I guess I'm in the root already.

    How do I clone a git repo using Visual Studio Online?

  • Answers
  • David Ebbo

    That would create a winjs folder, so it wouldn't be in the root. You can try with a period:

    git clone https://github.com/winjs/winjs.git .
    

    But the simpler way is to click on the git icon and use the clone UI there instead of doing it from the command line.


  • Related Question

    windows 7 - Unable to clone repository with Git
  • kim3er

    I am trying to clone a repository on my machine that I have just created on GitHub.

    I am new to Git, but have been using SVN for a while. I've set up an RSA key as per instructions but am unable to clone with either the SSH or HTTP Urls.

    When I use HTTP, I get the following error:

    Password: fatal: Out of memory, realloc failed
    

    I'm using Windows 7 with MSysGit (using Bash & PuTTY).


  • Related Answers
  • Vi.

    You can try Git in Cygwin. For me Git works better in Cygwin than as MSysGit.