Hi, @shivjm. Slow your roll there. There is no need to get rude and I’m also fairly certain you should still have all the Git LFS data.
I do agree I did miss one (and only one) question from you but that doesn’t justify being insulting.
You said you were ready to proceed with the Large Media add-on removal. You did not say to wait until you were sure you were ready. You wrote this:
You said to remove it and we did so. If you lost data, that is not my fault. We told you to be sure before making the post.
The answer to your question (the only question and one that I missed) is that you should have run this command:
git lfs fetch --all
However, as this is your personal blog site, I’m guessing that no one else is committing to that repo. If so, your local system should have all copies (past and present) of the Git LFS files as your local repo is the one creating the commits that get pushed. You cannot push a commit without the data existing locally. This means all versions of the Git LFS file must have existed locally at some point. If your local repo is the only local version, the command above normally isn’t required (and if you do run it nothing changes).
So, in most case even if you didn’t run
git lfs fetch --all, the data should exist locally. If so, the process to push the data to GitLab (the upstream repo host), the workflow is just this:
- delete the file
.lfsconfig from the repo
- add that change to a commit and push it upstream
git lfs push --all origin
.lfsconfig changes the Git LFS service from Large Media back to GitLab. That final command is what pushes the local objects to GitLab’s Git LFS service.
Now, if you did not have the copies in the local Git repo, that won’t work. For example, if you deleted the local repo directory and then made a fresh clone of the repo without running the command above, then yes, you did delete the older copies of the files. However, the current versions should still exist. If even the current versions are missing, that is very unusual. I’d need a complete accounting of the changes you have made to the repo to explain it if that is the case.
I hope this helps. If not, please feel free to reply anytime as long as you are respectful when doing so.