Shallow clone with JGIT

2019-01-24 02:17发布

问题:

How I can do

git clone --depth 1 ...

with JGIT library?

回答1:

You can't, JGit doesn't yet support shallow clones on the client side (it does on the server side, though).