问题
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).
来源:https://stackoverflow.com/questions/11475263/shallow-clone-with-jgit