I am using GitLab for a remote repository for a project. One of my branches includes a large dataset of images in a directory, which needs to be available at the remote repository. But everytime I checkout from a branch, the checkout lasts forever, since it copies all the files in that directory.
Is it possible to remove the directory from a branch, so it is not included in git ls-files, but stays on the remote repository.
Thank you.