When cloning a github repo with git clone https://gitlab.com/example/example.git
, it will download the data of every branch on the remote.
I have some large files in other branches which I do not always want to download.
So, can I clone a repo and ONLY download the data on the master branch. The data on the other branches should be downloaded when checking out that branch.
If it makes a difference, I'm using GitLab.