We have a repo with a bunch of projects. I am only concern with the "oracle" project within the repo. However, upon pulling down the codebase, I found subdirectories called "oracle" within other folders. Is there a way to only grab the parent folder that matches?
git init <repo> cd <repo> git remote add -f origin <url> git config core.sparseCheckout true echo "oracle/" >> .git/info/sparse-checkout Output
#ls -l oracle directory123 directoryabc #find . | grep "oracle" directory123/sub1/sub2/oracle directoryabc/sub1/sub2/sub3/oracle
oracleproject is at the root of your repo, I've got a feeling that writing/oracle/instead oforacle/should do the trick.