Can I perform a git archive
from a remote repository without cloning through JGit? The idea is to improve my current clone and make it lighter by just bringing the files I need.
Asked
Active
Viewed 835 times
1 Answers
1
No, JGit's archive command can only operate on a local repository. You will need to first (temporarily) clone the remote repository.

Rüdiger Herrmann
- 20,512
- 11
- 62
- 79
-
Should I report this behavior to JGit developers as it differs from common git archive? – Nana89 May 20 '16 at 15:54
-
Sure, you can file an enhancement request if you think this is a generally useful feature. – Rüdiger Herrmann May 20 '16 at 16:29