How I can do

git clone --depth 1 ...

with JGIT library?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top