Home > Net >  How to improve performance of GIT operations when GIT local working directory resides on a network s
How to improve performance of GIT operations when GIT local working directory resides on a network s

Time:10-05

Our working environment does not have access to local drive. So the working directory(which also means .git directory) has to be on a mapped network share. I measured the performance of running "git clone" on a network share. It is 60 times slower than running on local drive "C:".

Is there any parameter which I can tune to improve the performance a little bit?

This is for SAS so the folder directory is in SAS environment. I can also see other use cases where local folders are not allowed for security reasons.

CodePudding user response:

There's not much you can do in Git itself other than turning on the "don't lstat files" option (core.ignoreStat). Doing so is usually a bad idea because it makes actually using Git extraordinarily difficult: you have to keep track of any file you've modified.

Your best bet is simply "don't do that". Git is already a distributed version control system. It really wants to have the entire repository, and your working tree, locally, privately, on an un-shared disk on an un-shared file system. Do that. Do not attempt to subvert it; this will just make both you and Git miserable.1 Put a drive (preferably an SSD) on the machine.


1"Don't anthropomorphize computers. They hate that!"

  •  Tags:  
  • git
  • Related