以下の手順に従って、まばらなチェックアウトを行いました
git clone http://location/repo.git
# create .git/info/sparse-checkout file
git config --bool core.sparsecheckout true
git read-tree -mu HEAD
残念ながら、最後のステップはエラーメッセージで失敗します
Entry 'path/to/file' not update. Cannot update sparse checkout
path/to/file
(1)存在する(2)スパースチェックアウトプロセスが別のマシンgitバージョン1.7.1(Centos 6)で成功したため、これは奇妙です。現在のマシンは、git バージョン 1.8.3.1 がインストールされた Centos 7 ボックスです。の出力はgit config --list
両方のマシンで同じです。