Answer the question
In order to leave comments, you need to log in
Is the .git folder taking up 200gb?
A few questions:
1) Why does the folder take up 200GB and what is stored like that?
2) After what does it appear, after git init or after something else?
3) What happens if you delete this folder?
Answer the question
In order to leave comments, you need to log in
like any other directory, .git stores whatever you put there. Not directly, of course, but through the git utility.
if you delete this folder, you will lose: 1) the local history of commits, branches, stash, etc. - everything related to development and git, in short. 2) you will lose origin if it is not specified globally in the git or in the configs in ide. Those. it will not be clear which remote repository this project has.
The project will work, but it will not be possible to switch to another branch (I also think it is obvious), and there will be no other branches.
Answered above is correct. I'll tell you why it happened. Some designer poured all his layouts into psd there. Git is basically for text files. And it is better to store binaries separately.
200gb git is not the norm.
Here either:
1. The size was calculated crookedly.
2. The git stores large binary files.
Please note that git stores the entire history of the repository - if you uploaded a file to it and then deleted it, it will still be in history and can be restored.
It seems that there are tools for cleaning history from such garbage, but I won’t tell you exactly which ones.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question