I have a directory called docs inside my repo. I want this directory to stay on the remote repo as it contains some documentation but is not useful locally. Is there a way I can do something such that this directory will get ignore during cloning? Because I don't want users to clone the docs folder since it contains some large and unnecessary files
So far what I've tried is add it to .gitignore but it doesn't even show up in git status. I've also looked into sparse checkout but not sure if that's gonna solve this problem. I'm a beginner when it comes to git. Is doing something like this even possible? If not, is there an alternate solution to this?