github 怎麼clone倉庫下的指定目錄。我不想把整個目錄都clone下來,只是需要修改某個目錄,請問怎麼做
一個倉庫即唯一一個 git,git clone 是對 git 的操作,只能是整個 download 。 git無法實現你的需求
雷雷
可以實現:
mkdir myrepo cd myrepo git init git config core.sparseCheckout true git remote add -f origin git://... echo path/to/subdir/*> .git/info/sparse-checkout git checkout branchname
和其他語言客戶端一樣處理! Window:Linux:Git:
一個倉庫即唯一一個 git,git clone 是對 git 的操作,只能是整個 download 。 git無法實現你的需求
雷雷
可以實現:
和其他語言客戶端一樣處理!



Window:
Linux:
Git: