Following your comment on the error, a partial answer can be found at fatal: early EOF fatal: index-pack failed, by ingyhere. Since you want all branches you needed an added flag. Run
git clone --depth=1 --no-single-branch <url>
git branch -a
Make sure you see all branches before you continue. The no-single-branch
is the addition that counts.
From the man:
--depth depth
Create a shallow clone with a history truncated to the specified number of commits. Implies --single-branch unless
--no-single-branch is given to fetch the histories near the
tips of all branches. If you want to clone submodules shallowly, also pass --shallow-submodules.
single-branch
defaults to the main HEAD of the remote, master in your case.
This will get all commits such that you have one commit in each branch. I'm not sure if they will be connected. Now you can pull them one by one, or
git fetch --unshallow
git pull --all
following the above answer. The above answer also states
git config --global core.compression 0
before everything may help in case of failure.