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
) is massive, so I'd like to ignore it.
Note: I don't want to .gitignore this directory all the time, just for this scenario.
Basically, I'd like a command like this pseudo code: git clone --ignore wp-content/uploads
.
Is the best way to add that directory to .gitignore, clone, and then revert .gitignore? Or is there a better method?
clone
at least: stackoverflow.com/questions/4257622/…