I've a git repo checked out on a server. The repo used to have all the relevant files on the root, but i had to make some changes and now i have two folders, src and dist and i want to track both.
The problem i've got is that on my server, if i pull, i now have to navigate inside dist folder in order to see something.
I tried to search a bit and i think that what i'd like to do is called sparse-checkout.
I followed this tutorial: http://jasonkarns.com/blog/subdirectory-checkouts-with-git-sparse-checkout/, in particular the part that talks about an existing project and i did what mentioned:
- ssh into my server
- cd into the project folder
- git config core.sparsecheckout true
- echo dist/ >> .git/info/sparse-checkout
- git read-tree -mu HEAD
but nothing happend. I mean, i still need to navigate to myproject/dist to being able to see something.
I also tried to cat sparse-checkout file and dist/ is present. I tried git pull origin master as well, but with no luck.
Am i missing something here?
