I\'m trying to test something on a wordpress install. In doing so, I\'d like to quickly replicate the repo. However, the upload directory (wp-content/uploads) i
A bit late to the party, but: Don't you want a sparse checkout?
mkdir && cd
git init
git remote add –f
Enable sparse-checkout:
git config core.sparsecheckout true
Configure sparse-checkout by listing your desired sub-trees in .git/info/sparse-checkout:
echo some/dir/ >> .git/info/sparse-checkout
echo another/sub/tree >> .git/info/sparse-checkout
Checkout from the remote:
git pull
See http://jasonkarns.com/blog/subdirectory-checkouts-with-git-sparse-checkout/ for more info.