Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8261211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:19:36+00:00 2026-06-08T03:19:36+00:00

I am trying to implement a new backup system on a website using git.

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T03:19:38+00:00Added an answer on June 8, 2026 at 3:19 am

    Space Used Equals GIT_DIR + GIT_WORK_TREE

    If my website is 14GB will the .git directory occupy an additional 14 gb?

    To oversimplify the case enormously, yes. In a non-bare respository, Git stores all tracked file blobs, as well as other repository objects such as trees and commits under GIT_DIR. It also maintains copies in the GIT_WORK_TREE.

    The repository uses packfiles and deltification to keep this state of affairs from getting out of hand in the normal use case, but if you have 14GB+ of data in a non-bare respository–especially if a lot of those files are binary assets–then you may very well double-up (or worse) on disk usage.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement a payment system using the new PayPal API (Adaptive Payment).
I am new to python and I am trying to implement rfind function using
I'm new to Django and trying to implement a voting system between two images.
I'm new to Flex SDK and trying to implement a simple project using Doug
I am new to web development and am trying to implement a website where
I am trying to implement new helpers for Google Cloud to Messaging . The
I am trying to implement some kind of new Linux task scheduler so I
Trying to implement google C2DM service. registrationIntent.putExtra(app, PendingIntent.getBroadcast(context,0,new Intent(), 0)); registrationIntent.putExtra(sender,example@gmail.com); context.startService(registrationIntent); Almost every
I am new to Objective C and I am trying to implement an async
I am new to both MVC and Stackoverflow I am trying to implement pagination

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.