top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Git clone is versy slow

0 votes

I have an issue with git clone in one of the build server , Receiving Objects : it shows in 300~500 Kib/s due to this clone time is more it will take more than 10 minute complete 100 MB git source .

Whereas in all the other build servers its working fine its faster it’s in MB line-height:115%;font-family: "Maiandra GD","sans-serif"">Git version line-height:115%;font-family: "Maiandra GD","sans-serif"">

How to resolve this git clone tissue .

posted Jun 18, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

It is so slow that i started hating git (for wrong reasons)i'm sure there is a way out, please help me to make my git faster.

+1 vote

I wanted to avoid push if any of the files is deleted from the local git clone area. Can anyone please help me with that?

I am using Stash for repository management.

+3 votes

When we clone a remote GIT repository, all folders/files will be cloned. This will consume lot of disk space in our local machine.
Is there a way to clone only few folders & exclude others?

This is possible in clearcase snapshot view by changing load rules.

0 votes

Is there any reason why 'git clone -b' only takes a branch (from refs/heads/) or a tag (from refs/tags/) ?

Background: At $dayjob we're using some kind of 'hidden' refs (in refs/releases/) to communicate between the 'branch integrator' (who creates the ref in refs/releases/) and the 'build master' who wants to build that ref.

It would be a little easier if the build master could simply say

git clone -b refs/releases/the-release-for-today URL
instead of: git clone... ; cd ... ; git fetch... ; git checkout....

Any answer or even a better idea to solve that is appreciated.

0 votes

I am using Git bash from version 1.8.3.msysgit.0, on a Windows 7x64 PC. I have an issue with executing git push if I have a post-receive script configured.
The content of the script is not really important, as if I have a script that contains only commented out lines (around 70 lines), my git push command is delayed with around 5 seconds.
I`ve tested the script on another PC and it is working fine. No delay at all. So there are some issues on my PC regarding how git processes remote scripts.
I took a wireshark trace with 2 scenarios on my PC:

 1. just execute `cat     
    post-receive` command in the git bash
 2. did a `real` git push

Results of the wireshark traces shows:

 1. Read AndX Request, FID: 0x228f, 1024 bytes at offset 0 (1024 bytes at time, always)
 2. Read AndX Request, FID: 0x21c9, 1 byte at offset 0 (1 byte, always)

git push command reads the post-receive script in 1 byte chunks, which dramatically slows down the execution process.

If more information is required about my setup or configuration, I will provided it happily, but I think this 1 byte read is the main reason for the issue.

Has anyone seen something similar? Or have any clues what is going on?