Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git is doing very slow commits on a Samba share. What can I do to speed it up?

I am running a git repository on a remote server. I have it set up a samba share on the remote server so I can save my code there instead of on my local windows 7 machine. We are trying to look into using git, because svn has been so slow and unreliable. The problem that we are having with git is that doing any commits/clones/pulls onto the samba share run super super slow. If i do a commit/clone/pull onto a local dir on my windows 7 machine it works great, but we need the code to be on the remote server. Any ideas? I could really use it.

Edit:

I should also mention that I have already ran git gc --aggressive and it hasn't sped it up.

like image 874
Serenade X Avatar asked Aug 23 '12 16:08

Serenade X


1 Answers

Git is not meant to be used in this configuration. It's like getting a Formula 1 and have it race on a dirt road.

Git is a DVCS, or distributed version control. In other words, every developer gets a clone.

What you need to do is setup a git server repository on that samba machine and access the repo via http or ssh

You can use projects like GitBlit or even better an account on Github

like image 77
Olivier Refalo Avatar answered Nov 15 '22 23:11

Olivier Refalo