1

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.

4
  • Can you explain a little bit more what kind of working environment this is ? Commented Sep 29, 2021 at 19:51
  • 1
    For example : if these environments are only temporary (and you need to, say, clone some repo each time you start such an environment), you could try to mount some form of RAM fs Commented Sep 29, 2021 at 19:58
  • When I cut off my feet I can't run very fast, is there some medicine I can take or exercise I can do to run better after I've cut off my feet? Commented Sep 29, 2021 at 23:15
  • Well, there are many programmers which work in workstation or remote server environment which are out of their own control, especially those places totally controlled by IT department. Is there anything we can do to help them using GIT even if they don't have a local drive to use? Commented Nov 20, 2021 at 1:41

1 Answer 1

6

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!"

Sign up to request clarification or add additional context in comments.

2 Comments

git wouldn't know, but GIt would.
With GIT being ubiquitous as well as cloud configuration, such demand for GIT will get more popular. Maybe GIT people should start to work on a solution.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.