I am trying to implement a new backup system on a website using git. The virtual private server has 20GB space total with 5GB free.
When I run git add .
at the /var/www
(with my favorite .gitignore
parameters) I have a gigantic git folder that fills my hard drive to capacity.
It is not immediately apparent as to why this is happening as I expect the .git
directory to contain the bits about the bits (meta information) and not binary duplicates of all my files!
Whats going on here? If my website is 14GB will the .git
directory occupy an additional 14 gb?