My question is maybe unusual, let me explain,
- I made a first git versionning of a very big folder (20go) that I put on my host.
- I reduced this folder size (not useful data), and I made a second version of it.
- Problem is, git keep in memory the first version, so the .git/ folder stay very heavy.
- I don't need the first version anymore.
I suppose git do incremental backup, so if I find a way to delete the first version, it will miss a lot of stuff in the second one, nearly everything...
The easier way for me would do to just erase my .git/ folder and create a new one, but still, it stays very heavy (from 20go to 13go) and take me hours to save.
So here is my question:
? Do you know if we can do "decremental" or "Synthetic full backup difference" backup with git, and if not, would you know a tool with which it is possible ?
Thanks
PS: I saw this solution on git:
- git checkout --orphan latest_branch
- git add -A
- git commit -am "commit message"
- git branch -D master
- git branch -m master
- git push -f origin master
It erase the log history in the git repo, but in fact not the data's history, so it's not a solution.