fatal: destination path '.' already exists and is not an empty directory.如何 clone git 項目到一個非空目錄

解決的辦法是:git 1. 進入非空目錄,假設是 /workdir/proj1.net 2. git clone --no-checkout https://git.oschina.net/NextApp/platform.git tmporm 3. mv tmp/.git .   #將 tmp 目錄下的 .git 目錄移到當前目錄it 4. rmdir tmpform 5. git reset
相關文章
相關標籤/搜索