简体   繁体   中英

Eclipse EGit/JGit with LFS : commit looks ok but it doesn't work

I want to enable LFS for my project, hosted on GitHub. I use Neon with EGit/JGit 4.7.0.201704051617. I also have git/2.12.2.windows.2 and git-lfs/2.1.0 .

Just for test, I do :

git lfs track "*.dll"

If I had a .dll file and commit, github show this kind of content for the file :

version https://git-lfs.github.com/spec/v1
oid sha256:f81cee5f00c704e18b1c0372e026d2a0f56ff0957d37835c9ca36d6fef2bdcef
size 1024

Then the pull failed for egit and even for git. So I have to delete this entry.

If I commit using git command line, the file is ok on github and egit can pull it.

I do many tries without success. My testing repo is here : https://github.com/nicolas-albert/TestGit

Have you set up your .gitconfig to reference the LFS filters using:

git lfs install

Having done that you set up your project's .gitattributes file to specify which files should be managed by LFS. Then generally use standard Git commands with no need to reference LFS commands directly.

*.dll filter=lfs diff=lfs merge=lfs -text

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM