Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to revert tracked pointer files? #641

Closed
Vdragon opened this issue Sep 6, 2015 · 6 comments
Closed

Question: How to revert tracked pointer files? #641

Vdragon opened this issue Sep 6, 2015 · 6 comments

Comments

@Vdragon
Copy link

Vdragon commented Sep 6, 2015

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?

@technoweenie
Copy link
Contributor

  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.

@Vdragon
Copy link
Author

Vdragon commented Sep 6, 2015

@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

@yustiks
Copy link

yustiks commented Jun 14, 2019

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

@ggrrll
Copy link

ggrrll commented Aug 8, 2023

to answer question by @yustiks (I guess very common):
@technoweenie what would be the workflow, to be able to work with (few) specific files?

would git lfs migrate export be a good option? , as mentioned here #3463 (comment)

thanks

https://github.com/git-lfs/git-lfs/blob/main/docs/man/git-lfs-migrate.adoc#migrate-from-git-lfs

@ggrrll
Copy link

ggrrll commented Aug 9, 2023

related to #957 #910

@ggrrll
Copy link

ggrrll commented Aug 11, 2023

wrote a little script, in case 'nothing' works -- given you still have data in .git/lfs

#5463 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants