I am trying to pull all the files and folders within a specific folder in my git repository. I have already tried using sparce-checkout but this pulls the specific folder. I wish for it to only pull the files within the folder.
I have a folder called /EWINS/ and I wish to pull every folder and file within that directory.
I have tried:
git init
git config core.sparseCheckout true
git remote add -f origin https://MYDIRECTORY
echo "EWINS/*" >> .git/info/sparse-checkout
git pull origin master
However this results in the folder EWINS being pulled where as I require all the items within EWINS.
I have referenced: How do I clone a subdirectory only of a Git repository?
http://lakehanne.github.io/git-sparse-checkout
Any help would be appreciated.