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 6556465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:56:53+00:00 2026-05-25T12:56:53+00:00

Today, git started acting funny (well, funnier than usual) by insisting on running git

  • 0

Today, git started acting funny (well, funnier than usual) by insisting on running git gc after every single merge, even if they are back to back.

C:\Projects\my-current-project>git pull
remote: Counting objects: 31, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 16 (delta 11), reused 0 (delta 0)
Unpacking objects: 100% (16/16), done.
From git.company.com:git/
   e992ce8..6376211  mybranch/next -> origin/mybranch/next
Merge made by recursive.
Auto packing the repository for optimum performance. You may also run "git gc" manually. See "git help gc" for more information.
FIND: Parameter format not correct
Counting objects: 252732, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (59791/59791), done.
Writing objects: 100% (252732/252732), done.
Total 252732 (delta 190251), reused 252678 (delta 190222)
Removing duplicate objects: 100% (256/256), done.
 .../stylesheets/style.css                          |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

This is incredibly disruptive, and I fear that it means that my repository is corrupt somehow (this is the first time I’ve ever seen it automatically gc). Are my fears unfounded? If my repository is OK, how do I make the auto-packing stop?!

  • 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-05-25T12:56:53+00:00Added an answer on May 25, 2026 at 12:56 pm

    EDIT

    I think I spotted the problem.

    You are probably running Cygwin/git or MsysGit on Windows. I noticed that because of the

    FIND: Parameter format not correct
    

    error message. The trouble is that somewhere your hook scripts (or git internally?!) is calling find, which does not find the UNIX (GNU) find utility but rather finds the Windows (MSDOS… sic) FIND.EXE.

    You should be able to fix your system wide path. If that is not an option, explicitely specify the PATH environment variable inside your script (or before invoking them)


    Old answer for information:

    git gc --auto does not always result in any action taken; are you sure this is taking time every time, or did you just notice it is being called?

    If it is being called every time, you might

    • check repository permissions (make sure it is fully writable to you!)
    • git fsck
    • git repack
    • git bundle --create mybundle.git --all and git clone mybundle.git to see whether somehow you can ‘shake’ the culprit
    • see whether you can upgrade to a later version
    • if all else fails, strace or debug the git-gc binary

    Optionally, when you have shaken the culprit, you maybe able to analyze what is different between your ‘cleaned’ repo and the current one.

    From the git-gc man-page:

    With this option [–auto], git gc checks whether any housekeeping is required; if not, it exits without performing
    any work. Some git commands run git gc –auto after performing operations that could create many loose
    objects.

    Housekeeping is required if there are too many loose objects or too many packs in the repository. If the
    number of loose objects exceeds the value of the gc.auto configuration variable, then all loose objects
    are combined into a single pack using git repack -d -l. Setting the value of gc.auto to 0 disables
    automatic packing of loose objects.

    If the number of packs exceeds the value of gc.autopacklimit, then existing packs (except those marked
    with a .keep file) are consolidated into a single pack by using the -A option of git repack. Setting
    gc.autopacklimit to 0 disables automatic consolidation of packs.

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

Sidebar

Related Questions

I've just started learning how to use git today, progressing well. As an experiment,
I'm still new to git and github... well, I forked a plugin on github
I am used to pull from a git repository of someone. Today he moved
We are using submodules and we are new to git. We often see merge
While helping a friend with a git problem today, I had to introduce a
Today I was using Git and something happened to me which I didn't know
Fellow coders, today is my first dive into git using Tower on the Mac
I've ran against a problem whith git push today. I tried to push a
I'm looking for a Git alternatives to svn info. Today I added some information
I've just started using Jenkins today, so it's entirely possible that I've missed something

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.