| I'm not sure I understand this at all. > The problem is the way Git works, it clones your entire repository into the container with your cloud environment, using a slow network protocol. What about git's network protocol is 'slow'? I think I can also come up with a pretty simple experiment to prove or disprove this:
1. Fill a file with 13Gb of data and commit it.
2. Upload that to GitHub or wherever you want
3. Time how long it takes to clone and compare that to the real GitHub.com You will find the one we made takes 'seconds' (or minutes, depending on your network connection), while the the GitHub.com will take some time. So, same data, two different results? The difference in this experiment rules out the 'slow' network protocol as the difference maker. The real reason is that the GitHub.com repo will have hundreds or thousands of commits. Basically, the difference is the commit history, because that's how git needs to work. Git stores the diffs for the entire commit history, not just the literal files at the HEAD. I don't know what the network protocol has to do with that. |