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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…