从 Windows Dropbox 服务器克隆 Git Repo

从 Windows Dropbox 服务器克隆 Git Repo

我已经在 Windows 桌面上成功设置了 git 仓库,但在将仓库克隆到 Ubuntu 笔记本电脑上时遇到了一些困难。我在 Windows 桌面上使用 TortoiseGit,但我想开始学习 Git 的实际命令。我尝试了各种迭代,类似于:

git clone -o dropbox ~/Dropbox/sites/wordpress/

git clone -o dropbox ~/Dropbox/sites/wordpress/.git

但我收到了一条repository doesn't exist消息。现在,在我的 Windows dropbox 文件夹中,实际的 git repo 是,/Dropbox/sites/wordpress/.git但是当我从他们的网站(在我的 Ubuntu 笔记本电脑上)登录 dropbox 时,我看不到 .git repo。所以这实际上可能是 Windows 上隐藏文件的问题,但我不能 100% 确定。无论哪种方式,克隆 repo 的正确命令是什么?

答案1

您没有使用正确的路径。在 Windows 中,路径中使用“~”不起作用。请使用正确的路径。

相关内容