Getting started with LFS in JGit [message #1834026] |
Fri, 30 October 2020 13:23 |
Sorin Carbunaru Messages: 4 Registered: July 2015 |
Junior Member |
|
|
I have been working quite a lot with Git and JGit in the recent years. We have actually developed a basic Git UI client based on the JGit API.
I know that JGit has some support for LFS, but I don't know how to get started. Note that I am an absolute beginner when it comes to LFS...
The first thing I did was to add the Maven dependency to our project:
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit.lfs</artifactId>
<version>5.9.0.202009080501-r</version>
</dependency>
Now, the question is: how do I proceed?...
1. Do I need to install Git LFS separately, or does JGit work as SourceTree apparently does, without installing LFS, because it comes with built-in LFS support?
2. Do I need to implement or use some JGit API to enable LFS?
3. Can I track certain files using LFS?
By the way, is there any documentation/tutorial about how to use LFS with JGit? I personally didn't find something like this...
Best wishes,
Sorin C.
|
|
|
Powered by
FUDForum. Page generated in 0.05229 seconds