![无法使用 Visual Studio Online 克隆 Git 存储库](https://linux22.com/image/1407587/%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%20Visual%20Studio%20Online%20%E5%85%8B%E9%9A%86%20Git%20%E5%AD%98%E5%82%A8%E5%BA%93.png)
我正在尝试使用 Visual Studio Online“Monaco”将 WinJS 克隆到我的 Azure 网站。当我git clone https://github.com/winjs/winjs.git
在在线控制台中输入时,我收到错误Can only clone a git repository to the root of the workspace.
。
控制台中的“前缀”是/ $
这样的,我猜我已经在根目录中了。
如何使用 Visual Studio Online 克隆 git repo?
答案1
答案2
这将创建一个 winjs 文件夹,因此它不会位于根目录中。您可以尝试使用句点:
git clone https://github.com/winjs/winjs.git .
但更简单的方法是单击 git 图标并使用那里的克隆 UI,而不是从命令行执行。