So. I am new to git. And I think that I may have broken something other than my ability to correct (cheers).
Here's the breakdown:
I made a remote directory and accidentally included some VERY large files in the initial commit. This made it difficult for people to do anything about it. (At first I did not understand, and made changes, and used the directory for a while)
I learned that simply deleting files and doing the deletion do not help people clone the directory and learn about changing the history using commands like:
git filter-branch --tree-filter 'rm -f public/vidos/*' HEAD
which, as far as I know, will delete all files from the public / vidos / directory and save them all memory.
It seemed to happen. I could successfully clone everything (without memory errors), and the cloned copy did not have super large files in them.
THEN, this morning (after stupidly making sure that I had definitely picked up the remote depository (i.e. got rid of all my local things, thinking that he should be aware of everything except those large files), I started working with and I realized that all the files look like they were during the initial check (no changes, and there are many things that I changed, appear)
I did
git log
to view all changes and see all my commits (including commits that deleted super large files from the directory). Then i did
git reset hashcode
to return to the corresponding git (with the hash code that I got from the log).
Also, even if he thinks I'm on the right commit, the FILES are still identical to the ones I first contacted.
I can look back at my story and see that I did not filter the branch on any of the files that are not currently modified ... and I REALLY got confused about why my changes are gone. I committed ... I clicked ... I was sure that there were all my changes in the remote repository (I could check this (memory will be gone forever and out, but I will get the files) and I will see the changes ..... but I donโt see them anymore.
Did I do something dumb? Does the story affect things that I did not know about? Is it possible that everything I described has ruined my repository? (i.e. should I look in a completely different direction?)
I really, REALLY want my modifications to come back ... it will be very difficult to replicate all this code (and remember that I am even a DID). Is there anything I can do?
EDIT:
~~~~~~~~~~~ Well, reset does not work, but does:
git checkout hashcode
seems to work very well, and I see how the code changes.
But, checkout means that I am not in any industry, and I cannot make these changes the most recent (he thinks that it is updated). Any ideas on how I can make this commit "head"? And as soon as this is the head, it will save you from filtering the branches that I did to get rid of super large files? And if so, does anyone have any tips on how to get rid of these super large files WITHOUT this headache.
If there is no other way, can I just check two copies (one on my head, one on my last good fix) and manually copy and paste the good files into my head and then commit? It seems like this will work, but will not be very clean.