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

  • SEARCH
  • Home
  • 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 7745041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:54:52+00:00 2026-06-01T09:54:52+00:00

In one of my git projects, I have a zip file which bundles a

  • 0

In one of my git projects, I have a zip file which bundles a set of java libraries. The zip file is 4.5MB and contains 11 files. Only one of the contained libraries is changed regularly, the one that I’m working on (which is in the order of 50KB). The other libraries are static.

It would be great if git smartly only changes this small change in the zip file, and not replaces the whole zip file with every commit. Else, my git repository will grow very rapidly.

When I have updated my library and have recreated the zip file, and commit+push the changes, I notice that git writes objects in the order of <100KB to the server, like “Writing objects: 100% (58/58), 77.64 KiB, done.”. So it looks like git smartly sends only the changed part of the zip, and not the whole 4.5MB zip file again and again.

Is it indeed the case that git smartly handles zip files?

  • 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-01T09:54:53+00:00Added an answer on June 1, 2026 at 9:54 am

    Git knows how to handle diffs in binary files, so if a few files have changed in the zip it won’t store the whole file at each commit.

    As a side note, I wouldn’t recommend storing zip in your repository, as it’s likely to be an artifact (i.e. compilation result) of your code, unless it is a repository storing only your artifacts.

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

Sidebar

Related Questions

I had one Git repository (A) which contains the development of a project until
I have a ton of new files to commit. Clicking each one in git
I have a Git repository that contains a bunch of top-level maven projects (each
I have several projects which are under git repositories. All projects have its own
How do I set up a Git project to contains other projects? eg. I
I have my projects in 2 repositories. One under SVN and one under Git.
At my workplace we have one large Subversion repository which holds about 100 projects.
CentOS 5.3 subversion 1.4.2 I have been using git for one of my projects.
Say I have 5 git projects that are interdependent on one another: Database (talks
I have a remote git repository and I have cloned one branch git clone

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.