Git-lfs: Question: How to revert tracked pointer files?

Created on 6 Sep 2015  路  3Comments  路  Source: git-lfs/git-lfs

Hi, I've tried Git LFS on my GitBook project and found that GitBook can't access all pictures I tracked using Git LFS, I tried to stop using Git LFS, but found no way to revert my previous tracked pointer files using git lfs uninit git lfs untrack git rm... after I move those files back it still lists as tracked by Git LFS with git lfs ls-files, how can I opt out the whole Git LFS stuff from my repo?

All 3 comments

  1. Remove all filter.lfs.* git config entries with git lfs uninit.
  2. Clear any any attributes that use the lfs filter in .gitattributes by running git lfs untrack for each file type, or deleting .gitattributes if LFS is all you ever used it for.

After this, any added files will go straight to git.

@technoweenie
I later end up LFS pointer files in my working directory and have to recover all my pictures from .git/lfs using the sha1 hash stored in those pointers manually.

However thanks for helping, I will try this out when I know better about Git LFS

Is there any way I can return my files back from pointers?

Was this page helpful?
0 / 5 - 0 ratings