Skip to content

Remove old versions of a file #5651

Answered by chrisd8088
memeplex asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, thanks for the question and detailed descriptions of the approaches you've tried.

If I understand correctly, you're hoping to rewrite earlier commits in your Git history to remove Git LFS objects in those commits. I think the key point is that, assuming you want a "clean" history where you can checkout any particular commit without problems, you'll have to decide if those earlier commits should have (a) the original file, not converted to a Git LFS object, or (b) no file at all. If you leave Git LFS pointers in the history but remove all copies of the corresponding objects, I suspect you'll keep running into the problem you mentioned, i.e., you can't check out a commit with some Git …

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by memeplex
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants