從 Windows Dropbox 伺服器複製 Git 儲存庫

從 Windows Dropbox 伺服器複製 Git 儲存庫

我已經在 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 儲存庫是,/Dropbox/sites/wordpress/.git但是當我從他們的網站(在我的 Ubuntu 筆記型電腦上)登入 dropbox 時,我看不到 .git 儲存庫。所以這實際上可能是 Windows 上隱藏檔案的問題,但我不能 100% 確定。無論哪種方式,用於克隆存儲庫的正確命令是什麼?

答案1

你沒有使用正確的路徑。在路徑中使用「~」在 Windows 中不起作用。請使用正確的路徑。

相關內容