In the company where I work, I was using Git to save a system, where three people use it.
After an image folder has been accidentally sent, making a git pull
has become absurd since the downloaded data is almost 1.6GB.
We later removed this folder from images through the file .gitignore
. However, even after this change, the repository continues to be very large.
I have some questions to ask about this:
- How to reduce the size of a Git repository (when an accident occurs as above)?
-
Is there any way to get a
git pull
or agit fetch
, ignoring some files, such as images and / or videos (via parameters or something like that)? -
Why, even after deleting large files and adding them to
.gitignore
, is Git still giant? Are ignored (previously added) part of history? -
And, if "yes" to history, is there any way to delete these unwanted files from history?