Git clone repo without downloading all branches

时间:2019-04-17 00:17:09

标签: git

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.

0 个答案:

没有答案